I am generating my page in PHP. I am trying to open a magnet link and also open another page in a new tab which updates the download count.
My code works perfectly in Firefox, but in Google Chrome it doesn’t.
How can I make this work in Google Chrome:
<a href='' onClick='window.open(\"$Magnet\",\"_self\");window.open(\"http://website.me/download.php?download=$ID\");'> Download</a>
Just add a return false at the end of the onclick call.
Hope this helps.