

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The difference between external scripting and internal scripting in javascript, as well as the concept of event handlers. External scripting involves keeping functionality in a separate javascript file and including it in html documents, while internal scripting means writing the code directly into the html document. Event handlers are simple functions that can be called against mouse or keyboard events. The document also covers variables, operators, and basic scripting rules.
Typology: Exercises
1 / 3
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: