A
Astra
Hi All
I want to print a message on the first page if a client's browser doesn't
have JavaScript enabled. To do this I used the following code:
<%
' create an instance of the Browser Capabilities component
dim BrowserDetect
Set BrowserDetect = Server.CreateObject("MSWC.BrowserType")
IF BrowserDetect.JavaScript = false THEN
Response.Write pJSWarning
END IF
Set BrowserDetect = nothing
%>
This would be great if it actually worked. I've just run FireFox up, which
definitely has Javascript running, and my warning message appears saying
there is no javascript. Whaaahhh!?!?!
Is there a better way of doing this check in ASP?
Thanks
Robbie
I want to print a message on the first page if a client's browser doesn't
have JavaScript enabled. To do this I used the following code:
<%
' create an instance of the Browser Capabilities component
dim BrowserDetect
Set BrowserDetect = Server.CreateObject("MSWC.BrowserType")
IF BrowserDetect.JavaScript = false THEN
Response.Write pJSWarning
END IF
Set BrowserDetect = nothing
%>
This would be great if it actually worked. I've just run FireFox up, which
definitely has Javascript running, and my warning message appears saying
there is no javascript. Whaaahhh!?!?!
Is there a better way of doing this check in ASP?
Thanks
Robbie