The Java Developers Almanac 1.4


Order this book from Amazon.

   
Home > List of Packages > java.applet  [8 examples]

e553. Making the Browser Visit a URL

    // See also e551 The Quintessential Applet
    
    try {
        URL url = new URL(getDocumentBase(), "http://hostname.com/page.html");
        applet.getAppletContext().showDocument(url);
    } catch (MalformedURLException e) {
    }

 Related Examples
e551. The Quintessential Applet
e552. Getting an Applet Parameter
e554. Showing a Message in the Browser's Status Bar

See also: Images    Sound   


© 2002 Addison-Wesley.