Results 1 to 4 of 4
Sep 27, 2007, 16:03 #1
- Join Date
- Aug 2006
- 0 Post(s)
- 0 Thread(s)
Cancel button onclick event Firefox
I know you can cancel a Firefox onclick event on a button by doing this
<input type='button' onclick = 'return Validate()' />
where Validate returns false.
However is is possible to cancel the event from within the Validate method without having to have the 'return' in the attribute i.e.
<input type='button' onclick = 'Validate()' />
I have messed around with event.stopPropogation and event.cancelBubble=true, event.returnValue=false and nothing works.
Can anyone help me - is this possible?