Window.open Not Working In IE

If you use window.open to 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 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.

Note: Its Window name not window title.

[code lang=”js”]
window.open(‘https://blog.openshell.in/’,’blog’, ‘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’);
[/code]

Permanent link to this article: https://blog.openshell.in/2011/07/window-open-not-working-in-ie/

Leave a Reply

Your email address will not be published.