JS event handler function return False what the hell is that thing?

Source: Internet
Author: User

In the "JS DOM programming Art", with return false to prevent the default behavior of the event, but JS Elevation 3 does not have this usage, then what is this?

Let's take a look at an explanation.

On this issue, the first two points to be corrected:

1. The return false in the event handling method is not the terminating event, but the default behavior of the event host is blocked;

2, not the return Fasle in all event handling methods can prevent the event host's default behavior;

In fact, the default behavior of an event host can be organized only in HTML event properties and DOM0-level event handling methods by returning a return of false.

The rest of the content comes back at night.

JS event handler function return False what the hell is that thing?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.