•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 373,496 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,878 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 878 | Replies: 1
![]() |
•
•
Join Date: Jun 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
I want to make it so when a person clicks a link it pops up asking "are you sure" and if you click no itll stop u from going further and leave u on that page and if u hit yet itll continue to a specified link (which will be specified by a php script)
Something like this:
javascript Syntax (Toggle Plain Text)
<html> <head> <script type="text/javascript"> var doConfirm = function(id) { var link = document.getElementById(id); if(confirm("Do you really want to go to Google?")) return true; else return false; } </script> </head> <body> <br /><br /> <div> Click on <a href="http://www.google.com" id="link" onclick="return doConfirm(this.id);">this link</a> to go to google </div> </body> </html>
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- Problem when adding delete confirmation (ASP)
- IE 6 Can't open new windows from link clicked (Web Browsers)
- IE 6 Window from link won't load. (Web Browsers)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Java or Flash/Other?
- Next Thread: Pop Up Boxes for Map



Linear Mode