skaterdav85 Posted January 9, 2010 Share Posted January 9, 2010 I'm having problems with opening a new window in JS for Internet Explorer. This code works fine in Safari, FF, and Chrome. Any ideas? function openWin() { var newwin = window.open('guidelines.html','Review Guidelines',"height=430,width=420,location=0");} Link to comment Share on other sites More sharing options...
Ingolme Posted January 9, 2010 Share Posted January 9, 2010 What does Internet Explorer do when you try to run the function? Link to comment Share on other sites More sharing options...
ApocalypeX Posted January 10, 2010 Share Posted January 10, 2010 function openWin() { var newin = window.open('http://www.w3schools.com', 'lol', height=430 , width=420,location=0);} Link to comment Share on other sites More sharing options...
skaterdav85 Posted January 11, 2010 Author Share Posted January 11, 2010 It says "Invalid argument" char 3 for this particular line. I even changed it so the code was a little simpler: function openWin() { window.open("guidelines.html","Review Guidelines","height=430,width=420,location=0");} I hate IE!Ok so i just figured it out. Apparently the 2nd argument cannot have any spaces. Not sure why, but that made it work in IE. I guess Chrome, Safari, and FF let it slide, but IE doesnt. Link to comment Share on other sites More sharing options...
ApocalypeX Posted January 12, 2010 Share Posted January 12, 2010 IE makes me sick. Link to comment Share on other sites More sharing options...
Twango Posted January 13, 2010 Share Posted January 13, 2010 IE makes me sick.Me to. i got a new pc and it had ie i wanna get rid of it Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.