...

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



subdigital
03-20-2005, 08: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?

rwedge
03-20-2005, 08: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".

/Bob

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

subdigital
03-21-2005, 05: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum