View Single Post
  #2 (permalink)  
Old April 12th, 2004, 04:15 PM
PortGuy PortGuy is offline
Authorized User
 
Join Date: Mar 2004
Location: New York, NY, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Simple, Ben, as follows:

<head>
<script language="JavaScript" src="/my_global_dir/my_global_js_file.js"></script>
</head>

Within your external JavaScript file, you do not use the <script> tag, but simply type the code without the opening and closing <script> tags.

And by the way, most developers recommend using external JS files when you are re-using many of the functions.