Two JavaScript programs demonstrated in this video, examine the code
button.htm
<html>
<head>
<title>Using buttons</title>
<script language="javascript">
function showAlert()
{
alert("Thanks for clicking.")
}
</script>
</head>
<body>
<h1>Using buttons</h1>
<form>
<input type="button" onclick="showAlert()" value="Click Here">
</form>
</body>
</html>- blusher.htm
<html>
<head>
<title>
Using JavaScript events
</title>
</head>
<body onmousedown="document.bgColor='pink'">
<h1>
Clicking this page will turn it pink.
</h1>
</body>
</html> - Just copy & paste them in notepad, save it with extension .htm and see the output on the Internet Browser.
Thank you for reading this article Video Tutorial 9 Working With JavaScript in Browsers With URL http://x-tutorials.blogspot.com/2008/02/video-tutorial-9-working-with.html. Also a time to read the other articles.


0 comments:
Write your comment for this article Video Tutorial 9 Working With JavaScript in Browsers above!