Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 11-29-2004, 06:46 PM External Javascript
theshiznit's Avatar
Registered User

Posts: 214
Trades: 0
I have a external Javascript code i want to execute in my normal web-page.(It's a login script). I was wondering how to link it.

Can anyone help?
theshiznit is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-29-2004, 07:09 PM
Unknown.

Posts: 1,693
Trades: 0
I guess you mean linking to an external .js file...

<script type="text/javascript" src="file.js"></script>

--James
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 11-29-2004, 07:27 PM
theshiznit's Avatar
Registered User

Posts: 214
Trades: 0
cool thant worked...Thanks!
theshiznit is offline
Reply With Quote
View Public Profile
 
Old 11-30-2004, 04:03 AM
Ultra Talker

Posts: 377
Trades: 0
Just to add. As i know you may use a <LINK> tag to do the same thing...
__________________
andrews_john

Please login or register to view this content. Registration is FREE
andrews_john is offline
Reply With Quote
View Public Profile Visit andrews_john's homepage!
 
Old 11-30-2004, 03:41 PM
Extreme Talker

Posts: 160
Trades: 0
One of the <link> tags uses is to reference external StyleSheet files but not JavaScript ones.
For example,

<link rel="StyleSheet" type="text/css" href="style.css">
ElectricSheep is offline
Reply With Quote
View Public Profile
 
Old 11-30-2004, 05:10 PM
Unknown.

Posts: 1,693
Trades: 0
Yea.. to do it that way you would use..

<link rel="javascript" type="text/javascript" href="script.js" />

--James
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 12-01-2004, 04:02 PM
Extreme Talker

Posts: 160
Trades: 0
The <link> tag is NOT used for embedding JavaScript that is the role of the <script> tag. :-)
ElectricSheep is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to External Javascript
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26688 seconds with 12 queries