| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|onSubmit not returning false!|
I`m coding a guestbook and I want a message to appear when someone clicks "Delete" to say something like "Are you Sure?", then ok returns true, cancel returns false.
The code, which someone here gave me (can`t remember who) is as follows:
var confirmSub = confirm("Are you sure?");
Then I use the onsubmit = submitConfirmation(); in the form tag.
The code is displaying ok, in the sense that the box appears ok, saying "Are you sure?", but its not returning false if cancel is clicked. The entry gets deleted if ok or cancel are clicked.
Any ideas please?
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved