Dreamweaver How to invoke JavaScript behavior

Source: Internet
Author: User
Tags dreamweaver

Invoking a JavaScript behavior can specify a custom function or JavaScript code to execute when an event occurs. You can write these JavaScript code yourself, or you can use a variety of JavaScript libraries that are free on the web.

One, Dreamweaver invoke JavaScript behavior

1. Select an object.

2. Open the Behavior panel.

3. Click the "Add behavior (+)" button and select "Invoke JavaScript" from the Drop-down menu that pops up. As shown in the following illustration:

4. In the Call JavaScript dialog box, enter the name of the custom function or JavaScript code you want to perform. As shown in the following illustration:

5. Click on "OK" button, then give the selected object invoke JavaScript behavior.

The source code is as follows:

Dreamweaver CS5 invoke JavaScript behavior sample

Closes the window when the mouse is passing!

Some functions or JavaScript source code need to be modified and debugged to be used correctly.

6. See if the event attached above is a required event. If the event is not needed, you can modify the event.

7. See if the behavior parameters are appropriate. You can also modify the behavior parameters if they are not appropriate.

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.