Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Window Open in IE not working

Tags:

javascript

Could someone help me understand why this link works perfectly in firefox but in IE the pop up window doesn't work?

<a href="javascript:void window.open('/assets/flash/sage200demo.html', 'Sage 200 Demo', 'width=1024,height=768,status=0,resizable=0')">

like image 956
Andy Avatar asked Feb 26 '23 08:02

Andy


1 Answers

The spaces in the 2nd argument to window.open are causing the problem. This argument is the window name and IE doesn't like it if you have spaces in it. This will work:

<a href="javascript:void window.open('/assets/flash/sage200demo.html', 'Sage200Demo', 'width=1024,height=768,status=0,resizable=0');">

Working demo: http://jsfiddle.net/Lx4sQ/

like image 192
Andy E Avatar answered Feb 27 '23 22:02

Andy E