| | |
Disclaimer Messages
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2006
Posts: 4
Reputation:
Solved Threads: 0
I'm new to Javascript and could use a bit of advice. I''m looking for a simple way to call a Disclaimer message on a link outside our site.. ... I have tried using the confirm mesage but it still goes to the outside link when someone selects cancel. Can anyone share with me a simple script to do such a thing.
link to another site .....shows disclaimer with option to continue to link or cancel and return to previous page.
Any help is appreciated.
THANK YOU!
link to another site .....shows disclaimer with option to continue to link or cancel and return to previous page.
Any help is appreciated.
THANK YOU!
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
Research JavaScript's "return" keyword. If the user clicks cancel, you want to "return false" from your procedure, which will cancel the default action and/or exit the script.
So, you have a "submit" button. You code the "onclick" event handler, to a function which issues a confirm. If the user presses "Cancel", you return a "false" which cancels the submit.
So, you have a "submit" button. You code the "onclick" event handler, to a function which issues a confirm. If the user presses "Cancel", you return a "false" which cancels the submit.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<input type="submit" onclick="return myConfirmFunc();" />
![]() |
Similar Threads
- Can't open messages from Hotmail (Web Browsers)
- blocking sms messages (IT Professionals' Lounge)
- Importing messages from Mozilla Mail to Outlook?? (Windows NT / 2000 / XP)
- internet explorer error messages (Web Browsers)
- Saving Address book and Messages in Outlook Express (Windows NT / 2000 / XP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Change left-border of a table cell with javascript
- Next Thread: DHTML Menu
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child class close column cookies createrange() css cursor dependent disablefirebug dom download dropdown editor element engine error events explorer ext file form forms google gwt gxt hiddenvalue highlightedword html htmlform ie8 iframe image() images internet java javascript jawascriptruntimeerror jquery jsf jsfile jump libcurl math matrixcaptcha media microsoft mimic object onmouseoutdivproblem onreadystatechange parent pdf php player post problem progressbar rated rating regex runtime scroll search security select session shopping size software sql star stars synchronous text textarea unicode validation w3c web website window windowofwords windowsxp wysiwyg xml \n






