This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Applets and the fly likes Applet in a browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet in a browser" Watch "Applet in a browser" New topic
Author

Applet in a browser

Nirmal Mekala Kumar
Ranch Hand

Joined: Aug 27, 2005
Posts: 63
I am launching an applet from a web page in the browser. Is there a way to get the URI/URL of the web page from which I launched the browser?
Is it a good idea to pass the URL as a parmeter to applet from the Web page?


Nirmal Kumar<br />If you have to aim, aim for the moon. Even if you miss you will land among the stars
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41634
    
  55
That's what the getDocumentBase method does.


Ping & DNS - my free Android networking tools app
Nirmal Mekala Kumar
Ranch Hand

Joined: Aug 27, 2005
Posts: 63
Oops!! Thank you very much and
sorry for my ignorance.
 
Consider Paul's rocket mass heater.
 
subject: Applet in a browser