|
-
Aug 18th, 2005, 03:05 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] calling a url
I'm entirely new with java and my dumb question is:
how can i launch a new url in my internet explorer window using java?
is it like javascript function?
i know how to do this in javascript like location.href='newpage.htm'
how can i do this in java?
Code:
window.open('page.htm','test','toolbar=no,width=100;height=100') ;
please do advice.TIA
Last edited by VBKNIGHT; Aug 18th, 2005 at 04:31 AM.
If a post has helped you then Please Rate it!
-
Aug 18th, 2005, 09:58 AM
#2
Frenzied Member
Re: calling a url
No javascript needed.
Code:
try
{
URL resourceURL = this.getClass().getResource("http://www.google.com");
getAppletContext().showDocument(resourceURL);
}
catch(Exception e)
{
e.printStackTrace();
}
-
Aug 18th, 2005, 08:21 PM
#3
Thread Starter
Fanatic Member
Re: calling a url
would this code open my window with no toolbar and resized?
i need my window to open without toolbar and the width, height and top can be set.
TIA
If a post has helped you then Please Rate it!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|