Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Re: Re: submit button with javascript confirmation

by Moonie (Friar)
on Aug 15, 2002 at 17:56 UTC ( #190475=note: print w/replies, xml ) Need Help??

in reply to Re: Re: submit button with javascript confirmation
in thread submit button with javascript confirmation

you could always have a button that would go to a function and basically submit the form if the user clicked ok on the confirmation message. i.e.
<input type="button" name="submit" value="javascript: submitForm();"> <script language="javascript"> function submitForm() { if (confirm("delete account?")) { mainForm.submit(); } } </script>
this wasn't a very perl-y example.. but it's similar to what simon.proctor suggested.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://190475]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2016-10-21 13:58 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (289 votes). Check out past polls.