Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: submit button with javascript confirmation

by Moonie (Friar)
on Aug 15, 2002 at 17:56 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-09-15 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (21 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.