Return to Snippet

Revision: 60894
at September 2, 2013 09:06 by gummiost


Updated Code
function conf()
{
    return confirm('Are you sure?');
}

<a onclick='return conf()' href='http://example.com'>Link</a>

Revision: 60893
at November 16, 2012 11:47 by gummiost


Initial Code
function conf()
{
    return confirm('Er du sikker?');
}

<a onclick='return conf()' href='http://example.com'>Link</a>

Initial URL


Initial Description
Ask the user with a confirmation dialog if the link should be followed or not.

Initial Title
Confirm onclick

Initial Tags
link

Initial Language
JavaScript