Jump to content

window.open executing a download in IE


Xurion

Recommended Posts

Hi all,

 

I've come across a problem where my window.open call tries to download the page instead of view it in a popup but only in IE.

 

My popup is of an image, and the code is:

 

<a href="" onclick="window.open(main_image.src, '', 'width=500,height=500,scrollbars=yes'); return false"><img src="image.php?property=57-vereda_front.jpg&w=300" name="main_image" border="0"></a>

 

When you click on the image you get a request to save the image.php file. Is there something I am missing? Firefox opens the popup window fine.

 

Thanks in advance.

 

Xur~

Link to comment
https://forums.phpfreaks.com/topic/99514-windowopen-executing-a-download-in-ie/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.