/ Published in: ASP
Expand |
Embed | Plain Text
function getOS() dim sOS: sOS = Request.ServerVariables("HTTP_USER_AGENT") if (instr(lcase(sOS),lcase("windows")) > 0) then getOS = "windows" elseif (instr(lcase(sOS),lcase("mac")) > 0) then getOS = "mac" elseif (instr(lcase(sOS),lcase("mac")) > 0) then getOS = "linux" elseif (instr(lcase(sOS),lcase("windows ce")) > 0) then getOS = "pocketpc" elseif (instr(lcase(sOS),lcase("palm")) > 0) then getOS = "palm" end if end function
You need to login to post a comment.
