Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript in IE7 Address Line? (beginner)

    Hello-I'm trying make a shortcut that opens a browser window containing a specific URL in a 320x200 window with only scrollbars, no address bar by using javascript directly in the address line of IE7....but for some reason it isn't working

    The following line works in my IE7 address line:
    javascript: 5 * 30 (it gives the result 150, so javascript is enabled)

    But the following doesn't work if I enter it in the address line of IE7 (nothing happens):

    javascript: window.open(http://192.168.1.123,'Title','width=320,height=200,menubar=no,status=no,toolbar=no,scrollbars=yes');

    Is there any way to do this? Can window.open be used in the address line?
    Thx

  • #2
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Addendum: I have tried disabling the IE7 pop-up blocker, but still doesn't work.

  • #3
    New Coder
    Join Date
    Jan 2007
    Location
    Wales
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Why are you putting it in the url?
    Much easier to make an html page and have a link which opens the pop-up window.
    Tom Dean

  • #4
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by Rainer View Post
    Hello-I'm trying make a shortcut that opens a browser window containing a specific URL in a 320x200 window with only scrollbars, no address bar by using javascript directly in the address line of IE7....but for some reason it isn't working

    The following line works in my IE7 address line:
    javascript: 5 * 30 (it gives the result 150, so javascript is enabled)

    But the following doesn't work if I enter it in the address line of IE7 (nothing happens):

    javascript: window.open(http://192.168.1.123,'Title','width=320,height=200,menubar=no,status=no,toolbar=no,scrollbars=yes');

    Is there any way to do this? Can window.open be used in the address line?
    Thx
    You forgot to specify the URL as a string. This should get you into your router:
    Code:
    javascript:void( window.open('http://192.168.1.123','Title','width=320,height=200,menubar=no,status=no,toolbar=no,scrollbars=yes'))

  • #5
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Arty-Thanks for the reply!
    That works. Much appreciated.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •