Cross
Browser
Scripting In ASP |
|
Discover a simple way to write asp for
different browsers. |
|
Paco's Screensaver
|
Download The Official Paco's Drivers Screensaver.
Check It Out

|
|
We're listed @
|
|
|
|
Considering Different Browsers |
|
Many times it is necessary to consider the clients browser. Some things Are not
cross browser compliant. Often you have to write something one way for Internet
Explorer and another for Netscape. Often, people will write TWO pages and use a
browser redirect script. Rather than having two pages with the same content,
there is another option. It's really a simple solution. By looking at the USER
AGENT we can do a little server side scripting to show what is needed depending
on the browser.
<%
Dim strAgent
strAgent=Request.ServerVariables("HTTP_USER_AGENT")
If InStr(strAgent , "MSIE") Then
%>
'Place the IE version here
<%
Else
%>
'Place the NS version here
<%
End If
%>
|
|
|
Powered By
|
|
|
Copyright Info
|
Copyright Paco's Drivers © 1996-. All Rights Reserved.
PacosDrivers.com is best viewed at 800x600 Resolution
|
|
Earn Revenue
|
|
|