

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


External Scripting:
If the functionality to be defined is used in various HTML documents then its better to keep that functionality in a separate Javascript file and then include that file in your HTML docx.
E.g.
Internal Scripting
The code can be written directly into the HTML document. e.g.
Event Handler: Event handlers are simple defined functions which can be called against any mouse or keyboard event.
Bring your mouse here to see the alert message
Variables: Variables are containers for storing data values. They are assigned values using the equal sign (=).
Scripting rules:
Operators: