Inline Scripts

1. Inline Scripts are stored in the Body section of a web page
An Inline script is executed in response to some Event.
In the following example we execute some code that displays an alert box in response to a click on a link, try it.

Click me
Here is the code responsible

<div onclick="alert('Hi there');">Click me</div>

We have

Exercise
Create a web page containing the code above and display it in a browser