Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


how to call a .js file?



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
paulf



Joined: 19 May 2007
Posts: 12

PostPosted: Mon May 26, 2008 2:06 pm    Post subject: how to call a .js file? Reply with quote

ok guys another simple question when you know the answer!!

I have got one big file containing all the code for the body, javascript functions and styles.

I have separated the styles into a separate .css file being called by the main page using
Code:
 <link rel="stylesheet" type="text/css" href="setup_style.css" />

How do I call a .js file so that I can separate that code??

thanks Paul
Back to top
View user's profile Send private message
vince_cks



Joined: 23 May 2008
Posts: 9

PostPosted: Mon May 26, 2008 3:25 pm    Post subject: Re: how to call a .js file? Reply with quote

You mean:
Code:

<script src="xxx.js" language="JavaScript/text"></script>
Back to top
View user's profile Send private message
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 715
Location: Cebu City Philippines

PostPosted: Tue May 27, 2008 1:17 am    Post subject: Re: how to call a .js file? Reply with quote

Err!.

language is a deprecated attribute, which means, it will never validate when thrown on validator.

Use type instead:
Code:

<script src="xxx.js" type=text/javascript"></script>
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap