Test for Javascript support

J

Jeremy

Please can someone tell me where I can find the html code that will check
whether peoples' browsers support javascript, and if the browser doesn't
support it direct them to an alternate URL.

Many thanks!
 
T

Tom Pepper Willett

Put this tag in your head:

<noscript>
Whatever text or link you want goes here
</noscript>
--
===
Tom "Pepper" Willett
Microsoft MVP - FrontPage
---
About FrontPage 2003:
http://office.microsoft.com/home/office.aspx?assetid=FX01085802
FrontPage 2003 Product Information:
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
Understanding FrontPage:
http://msdn.microsoft.com/office/understanding/frontpage/
===
| Please can someone tell me where I can find the html code that will check
| whether peoples' browsers support javascript, and if the browser doesn't
| support it direct them to an alternate URL.
|
| Many thanks!
|
|
 
M

Murray

<noscript>Your browser does not support javascript and so you will not be
able to use this website. Please <a href="alternate.html">click here to be
redirected to the non-javascript site</a></noscript>
 
J

Jeremy

If I put into my head:
<noscript>
<a LinkToMyNonJavascriptSite >
</noscript>

Will that take them automatically to the new site? No user intervention
required?

Many thanks for your help!
 
B

Bob Lehmann

No. You need to provide a link.

Bob Lehmann

Jeremy said:
If I put into my head:
<noscript>
<a LinkToMyNonJavascriptSite >
</noscript>

Will that take them automatically to the new site? No user intervention
required?

Many thanks for your help!
 
A

Andrew Murray

the browsers *support* javascript, it is the users choice to turn it on or off.
there is a line of code like

<noscript>
<p> This browser has Javascript turned off or does not support it</p>
</noscript>
that you put in the head section, but I don't know if what I have written above
is completely correct, syntax-wise.
 
Top