Link to home
Start Free TrialLog in
Avatar of meravkn
meravkn

asked on

"Save Picture As" code

Hi,

On my application, the user gets to see a photo on a pop up window, and I would  like them to click on a button that says "Download this photo", What I would like then to happen is that it will open the same box that's being opened if I right click on the picture and choose "save picture as". Is there a way to do that?

Thanks!!!

Meravkn
Avatar of netuser1976
netuser1976

I dont think you can.. It will be a security breach if you allow your we page write files in your client
yup you can not do this. But what you can do it when someone click on image tell them save it

<img src="abnc.gif" onClick="alert('Please right Click and choose save as')">
Avatar of meravkn

ASKER

What if I use API?
ASKER CERTIFIED SOLUTION
Avatar of dorward
dorward

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of meravkn

ASKER

Thanks all!

Meravkn