# Detect if javascript is enabled?

**URL:** <https://forum.kirupa.com/t/detect-if-javascript-is-enabled/155934>\
**Category:** web dev\
**Created:** [July 21, 2005, 11:14am UTC](https://forum.kirupa.com/t/detect-if-javascript-is-enabled/155934 "2005-07-21T11:14:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lacuna](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Lacuna](https://forum.kirupa.com/u/Lacuna)\
**Post date:** [July 21, 2005, 11:14am UTC](https://forum.kirupa.com/t/detect-if-javascript-is-enabled/155934/1 "2005-07-21T11:14:09Z")

</div>

I can’t find what I am looking for. My searches are mainly coming up with browser detection scripts.

I need to be able to adjust certain code if the visitor doesn’t have js enabled. I was under the impression the ‘noscript’ tag only ran when js was disabled, but that doesn’t seem to be the case.

I used:

```auto

<noscript>

<% 
	if NOT boolPrintPage = "t" Then
	response.Redirect("form_index.asp?print=t") 
	end if
%>

</noscript>

```

Anyone done this before? I’d like to not have to create a separate page for non-js users, so variables in the querystring would be the best outcome i think.

~ Lacuna :love:
