Understanding JavaScript Events and Methods
Classified in Computers
Written on in English with a size of 5.51 KB
Javascript
The async attribute allows the browser to process the web page concurrently with loading and processing the JavaScript.
The defer attribute allows the browser to load the web page concurrently with loading the JavaScript, but the JavaScript is not processed until the web page is completely loaded.script src="bootstrap.js" async>script>
A change event is caused by an element value being modified. Ex: Selecting an item in a radio button group causes a change event.
An input event is caused when the value of an input or textarea element is changed.
A load event is caused when the browser completes loading a resource and dependent resources. Usually load is used with the body element to execute code once all the web page's CSS, JavaScript,
... Continue reading "Understanding JavaScript Events and Methods" »