homepage Welcome to WebmasterWorld Guest from 23.21.9.44
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved