|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
Join Date: Jan 2002
Location: Barcelona
Posts: 85
|
external javascript files
I'm familiar with external css files and was wondering if a similar idea was possible for javascript cos many of my pages use the same scripts and so it seems more efficient to have them all linked to one file. Is this possible and if so .. How?
Thanks in advance, Craig. |
|
|
|
|
|
#2 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Create you javascript file, save it as a text file with a .js extension and just link to it like so:
<script type="text/javascript" src="external_javascript.js"> |
|
|
|
|
|
#3 |
|
Member (7 bit)
Join Date: Jan 2002
Location: Barcelona
Posts: 85
|
easy-peasy. ta.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|