Chapter 18. Scripts
Scripts are little programs that add interactivity to your page. You can write simple scripts to add an alert box or a bit of text to your page, or more complicated scripts that load particular pages according to your visitor’s browser or change a frame’s background color depending on where they point the mouse. Because scripts are perfect for moving elements around on a page, they are the backbone of dynamic HTML, also known as DHTML.
Most scripts are written in JavaScript, since JavaScript is the scripting language that is supported by most browsers, including Netscape and Explorer.
Of course, there are entire books written about JavaScript—and some very fine ones indeed, including JavaScript for the World Wide Web: Visual ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access