Simple example of using inline javascript in html

90

Simple example of using inline javascript in html -

<!DOCTYPE html >  
<html>  
<head>  
<title>Softhunt.net</title>  
</head>  
<body>  
<p>  
<a href="#" onClick="alert('Welcome to Softhunt.net Tutorial Website');">Click Me</a>  
</p>  
<p> in this example we saw how to use inline JavaScript or directly in an HTML tag. </p>  
</body>  
</html>

Comments

Submit
0 Comments