Results 1 to 3 of 3

Thread: [RESOLVED] calling a url

  1. #1

    Thread Starter
    Fanatic Member VBKNIGHT's Avatar
    Join Date
    Oct 2000
    Location
    Port25
    Posts
    619

    Resolved [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!

  2. #2
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    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();
    		}

  3. #3

    Thread Starter
    Fanatic Member VBKNIGHT's Avatar
    Join Date
    Oct 2000
    Location
    Port25
    Posts
    619

    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
  •  



Click Here to Expand Forum to Full Width