embroidery2u Posted August 29, 2006 Share Posted August 29, 2006 Hi allI have image .. I want when the visitor click it .. 1. download a file 2. open a link " www.site.com " in a new normal windowcan any one tell me this scriptthanks Link to comment Share on other sites More sharing options...
aspnetguy Posted August 29, 2006 Share Posted August 29, 2006 You want the image to download when the user clicks it? If the user right clicks they can already choose to download it.You will want to use window.open to get links to open in a new window or for HTML you could use target="_blank" in the <a> tag Link to comment Share on other sites More sharing options...
embroidery2u Posted August 29, 2006 Author Share Posted August 29, 2006 Thanks aspnetguyI want that the visitor when click the image 2 things happen1. download a file ex : http://www.site.com/filename.zip2. new link open .. ex : http://www.newsite.com .. in a new normal windowthanks again Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 29, 2006 Share Posted August 29, 2006 The best way to do this would be to make the window pop-upThen have the file start downloading on the page load. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now