How can an applet get information about the URL it was called from?
Location: http://www.jguru.com/faq/view.jsp?EID=207153 Created: Sep 15, 2000 Modified: 2000-11-29 17:26:40.212 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Question originally posed by Kirby Vandivort (http://www.jguru.com/guru/viewbio.jsp?EID=207090 The getDocumentBase() method of Applet returns the base URL of the HTML file that loaded an applet. It is frequently used in conjunction with getting supplemental files like images, as in Image image = getImage(getDocumentBase(), “foo.gif”); While in most cases it returns the full URL of the HTML file that loaded the applet, the API docs specify that it only needs to return the URL for the directory of the file.