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