I want to use a script in a html page, but I want to put the script in a different file. What extension should this file have and what to I write in the html file to make the connection?
How do I make the connection between a file with a Java script and a html file?
Very easy, the file extension would be .js
and you would need to put the following line in between %26lt;head%26gt;%26lt;/head%26gt; tags in the html file:
%26lt;script language="JavaScript" type="text/javascript" src="file path"%26gt;%26lt;/script%26gt;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment