Inserting Inline JavaScript and Events
To view the accompanying video for this lesson, please visit mhprofessional.com/nixonjavascript/.
Sometimes the easiest way to achieve dynamic interaction with users of your web pages is to directly interact with them from the code they are using. So far we have mostly looked at running JavaScript from within <script>
elements, but that is not the only way you can use it.
For example, it’s quite legal to place JavaScript instructions inside elements, and you generally do this by attaching them to ...
Get JavaScript: 20 Lessons to Successful Web Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.