ASP| Detect whether the client is a mobile phone

xiaoxiao2021-03-05  25

For WAP developers, very practical code.

Can you judge that the visitor is using a mobile phone or use a computer access?

Thereby entering different directories.

<%

IF INSTR (Request.ServerVariables ("http_user_agent"), "mozilla") = 0 THEN

Response.Redirect "/ WAP" "If the client is accessible for mobile phone, enter the / WAP directory

Else

Response.Redirect "

http://www.mydot.org "" If the client is not a mobile phone access, enter the specified address

END IF

%>

转载请注明原文地址:https://www.9cbs.com/read-32167.html

New Post(0)