Board index   FAQ   Search  
Register  Login
Board index Web Development Forums Programming Forum

Javascript Enquiry

Programming forum to discuss all other languages, coding or scripting.

Javascript Enquiry

Postby Naina » Tue Dec 28, 2010 6:29 am

Hello

I would like a code in my website that would come if people had their Javascript disabled tell them to turn and offering a link to that he do "We noticed that you do not use JavaScript, click here to activate Java ". I've only seen this time and can not remember where - I almost always have JAVA.

Also, and lastly, I would appear in my browser Javascript thusly <script type="text/javascript" src= etc> etc instead of the entire JavaScript. So I refer to a JavaScript in a separate file. I've tried to do this and can not see what I'm doing wrong. Antechinus JavaScript Editor I use javascript to do (I copy and paste them in and then create a new JS and a link to IE) - but it's only the evaluation version and may not allow you to do this?

Any help would be much appreciated.
Naina
 
Posts: 1057
Joined: Tue Dec 21, 2010 12:26 pm

Re: Javascript Enquiry

Postby Emma » Tue Dec 28, 2010 6:30 am

Not sure about the first one but to link to an external javascript file enter the following tag before the </head> tag...

Code:

Code: Select all
<script language="JavaScript" src="http://domain.com/javascript.js"></script>


Make sure you save the javascript file as a javascript file (.js)

And do NOT include the <SCRIPT LANGUAGE="JavaScript"> and </SCRIPT> tags in the javascript file

Hope this helps
Emma
 
Posts: 398
Joined: Tue Dec 21, 2010 12:44 pm


Return to Programming Forum

Who is online

Users browsing this forum: No registered users and 0 guests

cron