Click here to Skip to main content
11,920,211 members (47,556 online)
Rate this:
Please Sign up or sign in to vote.
See more: Javascript HTML
check whether javscript is enable or not in html form
Posted 8-Oct-12 21:46pm
enhzflep 9-Oct-12 2:54am
Yes, it is enabled.
bhargavpp 9-Oct-12 3:09am
e popat,read my question carefully
Narra sreenu 9-Oct-12 6:42am
Try to put your question clearly here.
bhargavpp 10-Oct-12 7:08am
go home and sleep well...
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

  alert("JavaScript is enabled.");
  JavaScript is not enabled or not supported.
bhargavpp 12-Oct-12 8:24am
not working...
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

This should work too. If the JavaScript on the browser is disabled it will output a message and a link on how to enable it.

<noscript style="font-size: 18px; color: red; font-weight:bold">Javascript is disabled:<a href=";answer=12654"target="_blank">Click here to learn how to enable it before continue.</a>&nbsp;<br/></noscript>
bhargavpp 12-Oct-12 8:24am
not working..
Bryian Tan 12-Oct-12 12:34pm
What is not working?
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

bhargavpp 12-Oct-12 8:24am
showing always javascript is enable
JJ Raj 12-Oct-12 20:15pm
if you don't how to test it please accept it.. Did you disable javascript before testing? For which zone you have disabled it? there is internet intranet trustedsite zones?
bhargavpp 13-Oct-12 1:04am
yes i have tested on Mozilla,Chrome,IE9,Opera but not getting result it is always showing true,if i am disabling then also showing true..
JJ Raj 13-Oct-12 1:18am
In IE9 Did you go to internet options -> Security -> Internet -> custom options -> Disable Active scripting? I tested in IE9 today morning it works.. Tell me how did you disable javascript in IE9?
bhargavpp 13-Oct-12 1:48am
yes exectly i have done the same but application not running and message showing is always true as per your code detail..
JJ Raj 13-Oct-12 1:57am
Did you do the "disable active scripting" for both internet and intranet security options.. I had the same problem when did only for Internet when disabled Intranet also its working for me...
bhargavpp 13-Oct-12 2:02am
may be your broser not working propery so please check that and then try it i have tried lots of time but still same issue

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 455
1 phil.o 170
2 CPallini 150
4 F-ES Sitecore 130
0 OriginalGriff 6,778
1 KrunalRohit 4,495
2 Sergey Alexandrovich Kryukov 3,153
3 George Jonsson 2,810
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web02 | 2.8.151120.1 | Last Updated 11 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100