|
November 18, 1999 Cancelling a Link Tips: November 1999
Yehuda Shiran, Ph.D.
|
|
When the user clicks on a link, the browser normally loads the specified Web page. With JavaScript we can cancel this process:
When the user clicks this link (Doc JavaScript), nothing happens. The
When the user clicks this link (Doc JavaScript) a confirm dialog box pops up. If the user clicks OK, the page http://www.docjs.com/ is loaded. If the Cancel button is pressed, the page isn't loaded.
People who read this tip also read these tips: Look for similar tips by subject: |