954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

check javascript is enabled!!!

hi friends....

Can we check whether the javascript is enabled or not in the client browser???

thanx in advance....

rejisha
Newbie Poster
17 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

Simply insert this within your head tags.

<SCRIPT language="JavaScript"> 
<!-- BEGIN HIDING
 var browserName=navigator.appName; var browserVer=parseInt(navigator.appVersion); if ((browserName=="Netscape" && browserVer>=3) || (browserName=="Microsoft Internet Explorer" && browserVer>=4)) version="n3"; else version="n2"; if (version=="n3") alert("Your browser passes the test"); else alert("You need an upgrade, I think."); 
// DONE HIDING --> 
</SCRIPT>
essential
Posting Shark
974 posts since Aug 2008
Reputation Points: 114
Solved Threads: 138
 

Simply insert this within your head tags.

<SCRIPT language="JavaScript"> 
<!-- BEGIN HIDING
 var browserName=navigator.appName; var browserVer=parseInt(navigator.appVersion); if ((browserName=="Netscape" && browserVer>=3) || (browserName=="Microsoft Internet Explorer" && browserVer>=4)) version="n3"; else version="n2"; if (version=="n3") alert("Your browser passes the test"); else alert("You need an upgrade, I think."); 
// DONE HIDING --> 
</SCRIPT>
essential
Posting Shark
974 posts since Aug 2008
Reputation Points: 114
Solved Threads: 138
 
Can we check whether the javascript is enabled or not in the client browser???
alert( 'javascript is enabled' );

If it works, it's enabled ... if not, then it's not ...

langsor
Posting Whiz
390 posts since Aug 2008
Reputation Points: 30
Solved Threads: 36
 

hy,
use noscript tag like

<noscript>javascript in not enable  <a href="http://www.nikeshyadav.com">click here</a>  to rediect ur browser</noscript<
nikesh.yadav
Posting Whiz in Training
219 posts since Feb 2008
Reputation Points: 15
Solved Threads: 21
 

hey rejisha,
will u tell me which option u choose as a solution.and which one is the most suitable for ur problem

nikesh.yadav
Posting Whiz in Training
219 posts since Feb 2008
Reputation Points: 15
Solved Threads: 21
 

Hello All,

I want to secure images on my website. So, I was disabled the right click, ctrl+s, ctrl_+u like these. But if the user disables the javascript nothing will work. So, could you please tell me how to enable the javascript while loading the page automatically.

Thanks in advance
Surekha Matte

surekha.matte
Newbie Poster
1 post since Jun 2010
Reputation Points: 10
Solved Threads: 0
 
how to enable the javascript while loading the page automatically.

You can't.

The nearest you may get with javascript alone is to try to prevent users with javascript not enabled from accessing the page(s) in question.

fxm
Posting Pro
596 posts since Apr 2010
Reputation Points: 40
Solved Threads: 74
 
jdjdjks
Newbie Poster
1 post since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You