|
Check For JavaScript
This is
useful for checking for JavaScript browser compatibility , remembering
that a user can switch of JavaScript in Internet Explorer anyway
.
Here
is the code
<%
'declare our variables
Dim objBrowser , blnJavaScript
'create an instance of the Browser Capabilities object
Set objBrowser = Server.CreateObject("MSWC.BrowserType")
'save the value in our blnJavaScript variable as either true
or false
blnJavaScript = objBrowser.JavaScript
'display a message for true
If blnJavaScript Then
Response.Write "JavaScript is available in this browser"
'display a message for false
Else
Response.Write "JavaScript is not available in this browser"
End If
%>
If
you wanted to redirect to another page you could use Response.Redirect
"url" , the url being the page you wish to redirect
to . Or you could use either Server.Execute "url"
or Server.Transfer "url"
|