Checks whether the Browser supports(enabled) Javascript or not

Chikul
Posted by Chikul under ASP.NET category on | Views : 1623
 Protected Sub btnBrowser_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnBrowser.Click
'Checks whether the Browser supports(enabled) Javascript or not
If Request.Browser.JavaScript = True Then
Response.Write("Browser supports JavaScript.")
Else
Response.Write("Browser does not supports JavaScript.")
End If
End Sub

Comments or Responses

Login to post response