Check if Javascript is enabled in Internet Explorer

G

Guest

Is there an easy way to check if Java Script is enabled in the MS Internet
Explorer browser for versions 5.0 and above?

Also, how might I test this?
 
B

bruce barker

you need to write a sniffer page. in the code behind on render (meta
refresh) or postback, check if the value of Request.QueryString["js"].

<html>
<body>
<META HTTP-EQUIV="REFRESH" CONTENT=1>
<form name=jtest runat=server method=get>
<input type=hidden name=js value="javascript not emabled">
<script>
doument.getElementsByName('js')[0] = 'javascript enabled';
document.forms[0].submit();
</script>
<asp:button runat=server text="if this page does not automactically refresh
click here">
</form>
</body>
</html>


-- bruce (sqlwork.com)

| Is there an easy way to check if Java Script is enabled in the MS Internet
| Explorer browser for versions 5.0 and above?
|
| Also, how might I test this?
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top