View Full Version : window.open works in Firefox but not IE

03-20-2005, 09:37 PM
I have the following in my page:

<a href='#' onClick='window.open("viewimage.php?photo=$photo_id", "Photo Viewer" , "toolbar=no, location=no, menubar=no, resizable=yes, scrollbars=yes, width=600, height=600")'> x </a>

this works in Firefox, but not IE....

any ideas why?

03-20-2005, 09:48 PM
IE chokes saying it is an invalid argument. It is because it does not like the empty space in the title "Photo Viewer" , change it to "Photo_Viewer".


03-20-2005, 10:48 PM
Because IE sucks...maybe...

03-21-2005, 06:05 AM
Because IE sucks...maybe... amen, brutha.

jeez I was beating myself up... I couldn't figure this one out. Thanks a bunch! I am glad to know that it is a small fix.