Code solutions to PHP, JS, CSSCode source PHP, JS, CSS

Spread your code soluces to the world

Love me
Solucior » JAVASCRIPT » Link confirmation

Link confirmation

06/06/2011 by Dux   -   5/5 (2 ratings)

This method adds a confirmation dialog on a href link.


A link to confirm

source code

<a href="page.html" onclick="return confirm('Do you really want to visit this link ?')">A link to confirm</a>

Tested with Safari  Google Chrome  Firefox3  Firefox4  Opera  IE6  IE7  
Rate this code     |     Copied : 12x

Comments for Link confirmation

No comment
Add a comment Nickname   Site

Automatic search result page
Page to top
Extract links from a page
Link confirmation
Dynamically add rows to a form. Complete solution