Revision: 64904
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 3, 2013 21:07 by lakkie
Initial Code
<% Function Is_Mobile() Is_Mobile= instr("|up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|windows ce|pda|mobile|mini|palm|ipad|","|" & Request.ServerVariables("HTTP_USER_AGENT") & "|" ) > 0 End Function %> //USAGE <%If Is_Mobile() then%> <h1>You are using a mobile device</h1> <%Else%> <h1>You are not using a mobile device</h1> <%End If%>
Initial URL
Initial Description
Detect if browser is a mobile in asp
Initial Title
Detect mobile browser in asp
Initial Tags
Initial Language
ASP