spacer
Yehuda Shiran September 30, 1999
Using External Scripts
Tips: September 1999

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
HP to Microsoft: Thanks for Nothing
iPhone Remains Left Out as Android Scores Flash
The Year of Living the OpenSocial
If you want to include several lines of JavaScript code in your HTML document, you're be better off with a simple script:

<SCRIPT LANGUAGE="JavaScript">
<!--

// -->
</SCRIPT>

If you're working on a longer script, you might want to implement an external script:

<SCRIPT LANGUAGE="JavaScript" SRC="external.js">
<!--

// -->
</SCRIPT>

An external script is interpreted as if it precedes the local script. For a complete example take a look at our banner script in Column 13, Scrolling JavaScript Banners.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Administering RBAC in PHP 5 CMS Framework · xref: Automatic Cross Referencing Script · Book Review: Content Rich
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Gateway Launches New Core i7-powered FX-Series Gaming PCs · Review: Lenovo ThinkPad SL300 · EBay, Alternative Site Holiday Resources for Sellers