What does calling preventdefault() on an event do? How is this en forced?



What does calling preventdefault() on an event do? How is this en forced?..

Answer / 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

More Multimedia General Interview Questions

Differences between defining bindings in mxml and actionscript?

1 Answers  


Have you built any components with actionscript? If so explain how you did it?

1 Answers  


How can you show a jpg image in dynamic text field?

1 Answers  


Explain the role of each type of server required in a multimedia system and the type of storage media that should be used for it.

0 Answers  


What are wmv files?

1 Answers  


What are the different types of multimedia?

1 Answers  


What is Adobe After Effects used for?

1 Answers  


How to Convert jpg to doc file?

1 Answers  


What are the multimedia authoring tools?

1 Answers  


What is elearning?

1 Answers  


Mention some of the image formats used in multimedia?

1 Answers  


What is the importance of typography in multimedia?

1 Answers  


Categories