...

View Full Version : Javascript in IE7 Address Line? (beginner)



Rainer
04-27-2007, 01:27 PM
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

Rainer
04-27-2007, 01:33 PM
Addendum: I have tried disabling the IE7 pop-up blocker, but still doesn't work.

napster
04-27-2007, 01:50 PM
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.

Arty Effem
04-27-2007, 02:00 PM
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?
ThxYou forgot to specify the URL as a string. This should get you into your router:
javascript:void( window.open('http://192.168.1.123','Title','width=320,height=200,menubar=no,status=no,toolbar=no,scrollbars=yes'))

Rainer
04-28-2007, 02:32 PM
Arty-Thanks for the reply!
That works. Much appreciated.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum