PDA

View Full Version : javascript functions



cdfreelance
24-Mar-2009, 10:00 PM
Hi, I need to know if I can use bad_url to call a javascript function and not redirect the page?

Any help is appreciated.

russellr
26-Mar-2009, 11:59 PM
Hi,

The short answer is "no".

If you want to call JavaScript on submission of the form, you can use an "onsubmit" handler in your <form> tag.

This is different to using bad_url, which is designed to provide a useful page to process when an invalid form has been submitted.