The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Use window.showMadalDialog ( ) method

Posted by Kishori Sharan on January 31, 2001 at 4:12 PM

In fact, you don't need to use JSObject in applet if you want to just open a HTML page you can use
getAppletContext().showDocument ( "URL of the page to show" ) ;

getAppletContext () is a method of Aplet class. However, if you want to open a modal window then you can do that using JSObject as
window.showModalDialog ( "your html page" ) ;

You already know how to use JSObject. So instead using just call the above method and it woll open a modal window.


  • showModalDialog Sangeeta February 02, 2001 at 2:28 PM (1)
    • jkjhk ujgykjk June 04, 2001 at 10:13 AM (0)

Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us