|
Check Java support
Java support
is crucial for a lot of developers and again using Microsofts
Browser capabilities component we can check for Java support
.
Here
is our code.
<%
'declare variables
Dim objBrowser , blnJava
'create an instance of browser capabilities object
Set objBrowser = Server.CreateObject("MSWC.BrowserType")
'assign true or false value to our variable
blnJava = objBrowser.Javaapplets
'if it is true print a message
If blnJava Then
Response.Write "This browser supports Java"
'if false print different message
Else
Response.Write "This browser does not support Java"
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"
|