0

Possible Duplicate:
ie8 var w= window.open() - “Message: Invalid argument.”

check this page out: http://jsfiddle.net/S7Crc/

notice that clicking on click me opens a window properly in firefox but not in internet explorer despite the fact that the window.open is triggered by the user...

how do I get Internet Explorer to properly execute window.open and have it behave the same with Firefox? (note that I need to set the width and height of the window so a simple target _blank or target _new are NOT viable alternatives)

Community
  • 1
  • 1
pillarOfLight
  • 7,902
  • 15
  • 55
  • 87

1 Answers1

0

change the 2nd parameter for open(), the hyphen is not allowed there in IE

Use only characters[a-zA-Z], digits and the underscore for the 2nd argument

Dr.Molle
  • 115,009
  • 15
  • 189
  • 197