| View previous topic :: View next topic |
| Author |
Message |
paulf
Joined: 19 May 2007 Posts: 12
|
Posted: Mon May 26, 2008 2:06 pm Post subject: how to call a .js file? |
|
|
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 |
|
 |
|
|
vince_cks
Joined: 23 May 2008 Posts: 9
|
Posted: Mon May 26, 2008 3:25 pm Post subject: Re: how to call a .js file? |
|
|
You mean:
| Code: |
<script src="xxx.js" language="JavaScript/text"></script>
|
|
|
| Back to top |
|
 |
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 718 Location: Cebu City Philippines
|
Posted: Tue May 27, 2008 1:17 am Post subject: Re: how to call a .js file? |
|
|
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 |
|
 |
|