Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to open an url in a pop up browser from an applet?

Status
Not open for further replies.

davidchardonnet

Programmer
Mar 21, 2001
167
FR
Hello,

I don't know how I can open a URL window from an applet. What I want is that the browser opened by this pop up could have parameters like in javascript:
width=
height=
resizable=yes
etc...
I also want it to be centered in the screen...

Does anybody know how to do that?

Thank you very much

David
 
David,

You can use the netscape javascript classes like :

netscape.javascript.JSObject jsWin =
netscape.javascript.JSObject.getWindow(parentApplet);

jsWin.call("printURL",reqAll);


in which parentApplet is the calling applet, printURL a
javascript function in the html, and reqAll parameters
for that function.

-- olaf



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top