7
Contributors
8
Replies
9
Views
9 Years
Discussion Span
Last Post by jdjdjks
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>
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>
0

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 ...

0

hy,
use noscript tag like

<noscript>javascript in not enable click here to rediect ur browser</noscript<
0

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

0

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

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.

Edited by fxm: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.