T
Tomislav
Hello,
I tried to use "javascript:return confirm();" function in following
manner ( triggered by form onSubmit event ):
**
<form method="post" action="mail.php" onSubmit="javascript:return
confirm('Do you really want to send this order ?);">
**
When I include Submit button in this form form action should be
performed after "OK" is clicked on confirmation dialog e.g. "mail.php"
should be then executed. Only thing is that it is executed directly
without any confirm windows.
JS is enabled and browser is Firefox 2.0. What is more I frequently use
JS in my designs and this very site I am working on now has plenty of JS
included. That is a bit confusing - that code above does not work.
Did I miss something when I incorporated JS in form ?
Thanks,
Tomislav
I tried to use "javascript:return confirm();" function in following
manner ( triggered by form onSubmit event ):
**
<form method="post" action="mail.php" onSubmit="javascript:return
confirm('Do you really want to send this order ?);">
**
When I include Submit button in this form form action should be
performed after "OK" is clicked on confirmation dialog e.g. "mail.php"
should be then executed. Only thing is that it is executed directly
without any confirm windows.
JS is enabled and browser is Firefox 2.0. What is more I frequently use
JS in my designs and this very site I am working on now has plenty of JS
included. That is a bit confusing - that code above does not work.
Did I miss something when I incorporated JS in form ?
Thanks,
Tomislav