You can try the following markup side code.
<script type="text/javascript">
function checkJavaScriptValidity()
{
document.getElementById("Enabled").style.visibility = 'visible';
document.getElementById("Disabled").style.visibility = 'hidden';
}
</script>
Write the function within the
head tag.
Now call the function from
body onload. like the following:
<body onload="checkJavaScriptValidity()">
And Now create two div(within the form tag) to show the message on your browser.Please follow the code below:
<div id="Enabled" style="visibility: hidden">
Ya Browser JavaScript is enabled.have fun!!
</div>
<div id="Disabled">
Browser JavaScript is disabled. Please Check the Browser Setting.
</div>
If you want to know that, the browser supports the javascript or not. You can use the following code:
if (Request.Browser.JavaScript)
{
Response.Write("Javascript Enabled") ;
}
else
{
Response.Write("Javascript Disabled") ;
}
If this would be really helpful to you then don't forgot to Vote and Make Answer as Accepted.