These code examples and other materials are subject to Sun Microsystems, Inc.
Legal Terms
Making the Browser Visit a URL
try {
// The following 2 lines of code must be
// on the same line
getAppletContext().showDocument(new URL(
getDocumentBase(), "http://hostname/page.html"));
} catch (MalformedURLException e) {
}
Examplets provided by permission of the publisher, Addision-Wesley,
and Author Patrick Chan.