Definition :
It is a process of writing java script code within the html tags then it is called as inline java script.
Program 1 :
<html>
<body>
<h1> HELLO WELCOME </h1>
<input type=”button” value=”print me” onclick=”window.print()”/> </br>
</body>
</html>
Program 2:
<html>
<body>
<table>
<tr>
<td bgcolor=”red” onMouseOver=”this.bgcolor=’green'” onMouseOut=”this.bgcolor=’red'”> HELLO </td>
<td bgcolor=”red” onMouseOver=”this.bgcolor=’green'” onMouseOut=”this.bgcolor=’red'”> HELLO </td>
</tr>
</table>
</body>
</html>
Be First to Comment