• Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet Opening new html window

 
Denny Ong
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, how can I open a new browser window from clicking a button in the applet?
 
Brian Pipa
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to keep your applet running and launch the URL in a new browser window, you can use this:
appletContext.showDocument(new URL(destURL), "_blank");
where appletContext is your AppletContext
Brian
 
David Vickers
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I do the above, and it works fine, but is there a way to monitor when the new page is closed, and also can it be set to not have buttons, status etc, like a frame.
I know you can use window.open(x,y,etc,etc) to set this up as a javascript call, but can it been done from an applet. alternative, can the 'window' remove the buttons, as it can resize with window.resizeTo(x,y).
Cheers
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!