0

It's working in all the browsers except IE, when I hit the link, getting an error:

Invalid argument

HTML File...

<a href="javascript:void(0);" id="link">Open new window</a>

JS File...

$("link").observe("click", function () {
    window.open(location.protocol + "//" + location.host + "/" + "location.html", "Help desk", "width=643,height=600,resizable=1,toolbar=1,scrollbars=1,left=200");
});

Why is it not working in IE?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Krishna Kumar
  • 2,101
  • 1
  • 23
  • 34

1 Answers1

1

IE only supports a limited subset of names for the window and "Help Desk" is not one of them. Changing that argument to "_blank" will fix your issue.

Community
  • 1
  • 1
Sean Vieira
  • 155,703
  • 32
  • 311
  • 293