OZONE Asylum
Forums
DHTML/Javascript
confirm submit
This page's ID:
31077
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
don't forget that the enter key when focusing on form component is identical to pressing a submit button therefore you can choose from the following: a) add a submit button (input type="submit") with no validation and add to the form onsubmit="return areyoureallysure()" (or perform inline confirm code) b) add a [b]button (input type="button")[/b] with full validation call (onclick) performing javascript submit to the form ([b]document.getElementById(form id).submit()[/b]) and add to the form onsubmit="return areyoureallysure()" (or perform inline confirm code) personally I prefer the following code [code] <form onsubmit="return confirm('Are you sure?')"> ... <input type="submit"> </form> [/code]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »