View Full Version : JS works in Firefox, but not in IE

01-09-2007, 10:14 PM
I have a small popup script that works fine in Firefox, but not at all in IE
The code is:
function popout2(dest)
window.open(dest,'Document Viewer','toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=no,width=800,height =600,left=220,top=181');
And is called by:
<a href="javascript:popout2('http://xxx.xxx.xxx.xxx/msac/workorders/tbl_workorders.php?units=<?php echo $row1['unid']; ?>')">
I've tried messing with the single/double quotes and semi colons but no luck.
Anyone see anything i'm not?

01-09-2007, 10:25 PM
Yes. Names cannot have spaces in them.

function popout2(dest)
window.open(dest,'Document_Viewer','toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,re sizable=no,width=800,height =600,left=220,top=181');