Link to home
Start Free TrialLog in
Avatar of craigofcapetown
craigofcapetown

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of sajuks
sajuks

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of craigofcapetown
craigofcapetown

ASKER

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?
": 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
nn7? opera? ie3? lynx? x browser?
would also work in  nn7  & opera  
dont've the rest of the browsers so cant test..
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>

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


Cd&
Why a 'C' ?