Identifying the Browser A
■Java
if ((ua.indexOf("UP.B") !=
}
elseif(ua.indexOf("Mitsu") !=
}
else{ res.setHeader(res.SC_MOVED_TEMPORARILY); res.setHeader("Location", "/nokia/index.wml");
};
■ASP
If((InStr(uastring, "UP.B")) (InStr(uastring, "UP/"))) Response.Redirect("/opwv/index.wml")
ElseIf(InStr(uastring, "Mitsu")) Response.Redirect("/mitsu/index.wml")
Else
Response.Redirect("/nokia/index.wml")
February 2001 | Genie Application Style Guide 75 |