html - Open a different page for a download link -


hi have link on portfolio website downloads .exe file people can check out of work.

the link

<a href="downloads/project.exe">download here!</a> 

the problem have want open link. when person presses "download here!" download .exe , open html page have.

any idea's on how this?

thanks in advance

<a href="javascript:opennew()">link</a> <script type="text/javascript">      function opennew(){         console.log("lets begin");         window.open("http://www.facebook.com");         window.location.href = "http://www.google.com";     }  </script> 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -