HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

onClick Save As with text
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> Javascript
View previous topic :: View next topic  
Author Message
alex_85



Joined: 05 Jun 2009
Posts: 10

Posted: Wed Jul 01, 2009 1:13 pm     onClick Save As with text  

Ok without making this more complicated that it is.

Basically, when the user clicks on the image, something will come up in a div saying 'save as', and the user clicks the 'save as' and it opens up a jpg. So far I can get some text saying 'save as' that does nothing. Or when u click the image the 'save as' dialogue automatically comes up.

Can someone tell me, the easy way to add a name value to this onClick function.

Thanks

<a href="flowers/a2.jpg" target="frame"> <img src ="flowers/a3.jpg" name="Save As" onclick="window.open('flowers/aZip.zip'); return true;" border="0"/></a>
sticks464



Joined: 31 Dec 2006
Posts: 2309

Posted: Wed Jul 01, 2009 3:29 pm      

Why do you need javascript to do this, it can be done with html?

Code: <a href="flowers/aZip.zip"><img src="flowers/a3.jpg" alt="Flowers" /></a>

The default download window will open asking the user what to do with the file and where to save it.
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> Javascript
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group