Skip to main content

Calling a Script

Sometimes the script might run on a number of web pages on your website. In this case, you can write one script and call it to run when required. In the following example note that the file with the script has been saved with the extension .js:

 
<html>
   <head><script src="test.js"></script></head>
   <body>
   </body>
</html>
 

Next: Visual Basic Script (VBScript)