homepage Welcome to WebmasterWorld Guest from 50.17.107.233
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Prompt confirmation
Gero_Master




msg:3070479
 1:06 pm on Sep 3, 2006 (gmt 0)

Hello!

Anybody have a script to make confirmation prompt for a link. I mean, when you click on the link, a prompt appears with 2 buttons, 'yes' and 'no'. If you click 'no' the prompt just disappears and nothing happens, but when you click 'yes' it will open the link.

But this script needs to able to be run easily for many links on the same page.

 

RonPK




msg:3070558
 3:49 pm on Sep 3, 2006 (gmt 0)

Maybe the standard confirm() dialogue will do?

<a href="page.html" onclick="return confirm('Proceed?');">link</a>

Gero_Master




msg:3085412
 2:20 pm on Sep 16, 2006 (gmt 0)

Thanks for the tip ;)

All working fine now :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved