Checking for Javascript using VBScript

I would like to know if there is a way to check if a user's browser has Javascript enabled. I however can't do this using Javascript, for obvious reasons. The only other alternative is by using client-side ASP.NET, which is browser dependant (at this stage), or by using VBScript, which is also browser dependant, but more widely implimented. Any alternatives for detecting this client-side, browser setting would also be welcome.

Thanx
C
LVL 2
craigofcapetownAsked:
Who is Participating?
 
sajuksCommented:
you could check if javascript is enabled using the noscript tags, if it is diabled it will redirect you to google( ur alternative page  ) else you could continue processing.no need for vbscript...
<html>
<head>
         <noscript>
              <meta http-equiv="Refresh" content="0; URL=http://www.google.com">
          </noscript>
</head>
     <body>
         
     </body>
</html>
0
 
craigofcapetownAuthor Commented:
would it still execute the code between the noscript tags-even if javascript is enabled?
Does this mean that server-side ASP, when placed after the noscript tags setting the headers to redirect to the page containing javascript would fail to execute as result of the redirect between the noscript tags?
Are noscript tags widely supported?
0
 
sajuksCommented:
": would it still execute the code between the noscript tags-even if javascript is enabled?"
no thats the purpose of the <noscript> tags.
if javascript is enabled then it will ignore the script between the <noscript> tag and instead execute whats between
<script> tag,

"Does this mean that server-side ASP, when placed after the noscript tags setting the headers to redirect to the page containing javascript would fail to execute as result of the redirect between the noscript tags?"
yes


"Are noscript tags widely supported?"
works in ie6,mozilla
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
craigofcapetownAuthor Commented:
nn7? opera? ie3? lynx? x browser?
0
 
sajuksCommented:
would also work in  nn7  & opera  
dont've the rest of the browsers so cant test..
0
 
craigofcapetownAuthor Commented:
do i then add the code as follows :

<head>

    <script language="Javascript">

        Alert('hello!');

        <noscript>

           ...

        </noscript>

    </script>

</head>

or

<head>

    <script language="Javascript">

        Alert('hello!');

    </script>

    <noscript>

       ...

    </noscript>

</head>

?
0
 
COBOLdinosaurCommented:
FYI:
<noscript> has been support by every browser since IE 3 and Netscrap 3.  


Cd&
0
 
sajuksCommented:
Why a 'C' ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.