Introduction to JS Basics

Source: Internet
Author: User

JS Dynamic Effect

1.1Alert () Pop-up alert box

1.2Console Console output

1.3prompt input Box

1.4document.write () document print Output Documents Document Object Alert () very few user experience

Console user cannot See

1.5JS How to control styles

getElementById ("demo")

Get gets element elements by passing

Document getElementById ("Demo"). Style width = "220px"

Lycoris radiate

Mouse click OnClick

OnDblClick Mouse Double-click

onkeyup triggers when a key on the keyboard is pressed and released

onchange text content drop-down refresh

Onblur loses focus, indicating a cursor that loses the mouse, such as a text box

onmouseover mouse hover over the picture, etc.

onMouseOut mouse out of the picture area

OnSubmit Form Submission Events

OnLoad Load Event

OnUnload when you close a webpage

OnReset when resetting the form

Introduction to JS Basics

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.