I've seen some website doing this.. but couldn't find any script that would actually do... When you click a link... a pop-up will show up... and unless you click something on the pop-up... the main page won't redirect you the destination link... anyone kind enough to share how is this being done?
The target of the link is Javascript (in another part of the file) that pops up the alert, then redirects. Or it could redirect to a small page that has the thing you click on, which is another redirect to the actual page.
do something (open pop up or something else) before navigating to a link, to do that need to capture the click event and then do action Like: <html> <head> <script type="text/javascript"> function navigate(){ alert("click on me"); } </script> </head> <body> <a href="http://sheetalcreation.com" onclick="navigate();">web design and development company</a> <button onclick="ChangeSize ();">Change the size of the blue element</button> </body> </html> if at any time you want to stop navigating to link then you can use event.preventDefault() Sheetal G