There are three ways to add JavaScript commands to your
Web Pages.
• Embedding code
• Inline code
• External file
External File
You can use the SRC
attribute of the <SCRIPT> tag to call
JavaScript code
from an external text file.
This is useful if you have a lot of code or you want to run it from
several pages, because any number of pages can call the same external JavaScript
file. The text file itself contains no HTML tags. It is call by the following
tag:
<SCRIPT SRC="filename.js">
</SCRIPT>
<script type='text/javascript' src='common.js'></script>
0 comments:
Post a Comment