Include a JavaScript File on a HTML Page

A Place To Talk About HTML,SHTML,XHTML, HTM,XML,CSS, JS,PHP,,Etc
Post Reply
User avatar Romania
Dragosvr92
Administrator
Administrator
Posts: 1127
Joined: 11 Sep 2009, 06:04
Name: Dragoș-Valentin Rădulescu
Location: Romania
Age: 32
Contact:

Include a JavaScript File on a HTML Page

Post by Dragosvr92 »

To Include a Javascript (.js) File on an HTML page you can use one of the codes bellow
they look different but they will do the Same Function

Code: Select all

<SCRIPT LANGUAGE="JavaScript" SRC="FILENAME.js"></SCRIPT>

Code: Select all

<script type="Text/JavaScript" src="FILENAME.js"></script>
Formerly known as TheKiller
ImageImage
Post Reply