Add Scripts to Your Web Pages

The way you add scripts to your Web pages is much alike you put any contents on HTML pages. Scripts are enclosed between the container tags: <SCRIPT> </SCRIPT>. In this article, we show you how to add JavaScripts and VBScripts to your HTML files.

1. Methods to add scripts to your Web pages:

2. Script tag and attributes: <SCRIPT></SCRIPT>

3. Add JavaScripts to your HTML files
Example1: Add an embedded JavaScript
<HTML>
<HEAD><TITLE>An example of embedding A JavaScript</TITLE>

<SCRIPT  TYPE="text/javascript">
<!-- Hiding scripts from old browser
Your Script code goes here!
//End hiding from browser -->

</SCRIPT>
</HEAD>
<BODY>
<p>Other HTML code goes here!:</p>
</BODY>
</HTML>