Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-11-2004, 09:43 AM   #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.
craigtaylor74 is offline   Reply With Quote
Old 03-11-2004, 09:55 AM   #2
Staff
Premium Member
 
mairving's Avatar
 
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">
mairving is offline   Reply With Quote
Old 03-11-2004, 09:59 AM   #3
Member (7 bit)
 
Join Date: Jan 2002
Location: Barcelona
Posts: 85
easy-peasy. ta.
craigtaylor74 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:49 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2