Test for Javascript support

  • Thread starter Thread starter Jeremy
  • Start date Start date
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!
 
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!
|
|
 
<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>
 
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!
 
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!
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top