This is the example of opening a url from an applet. This program shows that how a url is opened in a new document or browser. When you click the button "google", new browser window will open displaying the specified url, in our case url is http://www.google.com. This is accomplished by specifying the target as " _blank" while calling getAppletContext.showDocument(url, target) function.
Here is the code of the program :
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: December 13, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles