Subscribe

Close

Thank you for visiting!

Please consider subscribing to the RSS feed or following me on Twitter.

Solution To window.open Not Working In IE

If you use window.open top open custom windows with JavaScript, you might encounter problems in Internet Explorer. Even though you can open new windows in other browsers, it doesn't work in IE.

The reason to this is it depends on how you name your JavaScript windows. IE doesn't allow much space here.

window.open takes three parameters - window url, window name and window properties. Make sure the window name doesn't contain other characters than a-z, A-Z and 0-9. No spaces, no hyphens, no aposthropes.

Here's a working example:

window.open('http://www.manutd.com/','ManUtdOfficialWebsite',
    'left=0,top=0,width=1024,height=800,channelmode=no,
    titlebar=yes,scrollbars=yes,toolbar=no,menubar=no,
    resizable=yes,copyhistory=no,directories=no,status=yes');

Comments

bah! does anyone even use window.open() anymore???
greybox/lightbox is the shit....

Rudde: I agree.. But the customer had to open some internal systems in a new window from their intranet, and this was the way to do it..

To the top