Author: surya_bg2000 | Posted on: 7/31/2009 1:47:48 AM | Views : 743



Requirement:
           I want check whether Javascript is enabled in Client browser and if it is disabled then take user to default/custom/exception page i.e. accessdenied.aspx where i would instruct the user to enable Javascript before he can access the site further.


Solution:
         Add below below script in the .ASPX page or in Master page inside HEAD tag.


<noscript>
 <meta http-equiv='refresh' content='0;url=../accessdenied.aspx'/>
</noscript>


url attribute defines navigation to the page when Javascript is disabled in client browser






< ...

Go to the complete details ...