Jump to content

Opening A New Window In Js


skaterdav85

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...