save up to 40%

How to create an external script file?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

How to create an external script file?

Rating:

An external script file is a file that is created outside the main HTML document. This file can be invoked in any HTML document with the help of the src attribute of the <script> tag. The code of an external script file can be written in any text editor and must be saved with the .js extension.

The following code will create an external script file:

function myfunc()
{
       //statements
}


When this file is saved as script1.js, the following code can be used to invoke the file in the HTML document:

<script language="JavaScript" src="script1.js">


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.