Msg#: 3581579 posted 9:23 pm on Feb 21, 2008 (gmt 0)
Hello, I was wondering if there is an easy way to automatically detect if a form has been submitted on a page. Basically I need to run a JS function on every form submission on many pages. Now i know i can add in the <form> tag the following attribute:
However I am trying to make this happen throughout my whole website consisting of many forms in many places including a custom made CMS. So with that said I would like to try to add some JS to the head of the page which will detect a form submission. I was thinking maybe setting an event handler to run ever second to see if a form was submitted, but I wasn't sure if that was possible or even the best way to do it?