# Check if javascript is on

**URL:** <https://www.ruby-forum.com/t/check-if-javascript-is-on/141245>\
**Category:** Rails\
**Created:** [June 24, 2008, 1:25am UTC](https://www.ruby-forum.com/t/check-if-javascript-is-on/141245 "2008-06-24T01:25:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![taro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/df705f/32.png) [@taro](https://www.ruby-forum.com/u/taro)\
**Post date:** [June 24, 2008, 1:25am UTC](https://www.ruby-forum.com/t/check-if-javascript-is-on/141245/1 "2008-06-24T01:25:20Z")

</div>

I know this is a dumb question, but is there a way to figure out  
whether javascript is on a browser or not before I generate the page?  
This is most important with my edit controllers which has a hidden  
form to edit a page, and it’s only made visible by a few javascript  
magic.

---

<div class="post-metadata">

**Author:** ![taro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/df705f/32.png) [@taro](https://www.ruby-forum.com/u/taro)\
**Post date:** [June 24, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/check-if-javascript-is-on/141245/2 "2008-06-24T22:24:07Z")

</div>

On Jun 23, 2008, at 4:24 PM, Taro wrote:

> I know this is a dumb question, but is there a way to figure out  
> whether javascript is on a browser or not before I generate the page?  
> This is most important with my edit controllers which has a hidden  
> form to edit a page, and it’s only made visible by a few javascript  
> magic.

lots of ways to do this . google is your friend “detect javascript  
enabled”

– gw
