Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can an applet get information about the URL it was called from?

applet called URL
0
Posted

How can an applet get information about the URL it was called from?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123