adspace
What does calling preventdefault() on an event do? How is this en forced?
Answer Posted / Gaurav Kumar Sinha
Calling preventDefault() on an event object prevents the default action of the event from occurring. This can be useful to stop a browser's default behavior, such as following a link or submitting a form. In ActionScript, you can access the event object with the Event.currentTarget property and call preventDefault() like this: event.preventDefault(). The event object is often passed as a parameter to event handlers.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category