MobileDevice

 

Type: Boolean

 

Returns True if the browser is running on a mobile device. False otherwise.

 

Note: The iPad is not categorized by BrowserHawk as a mobile device by design. Therefore this property will return False for the iPad. This decision was made based on feedback from customers who desire to treat the iPad like a traditional browser due to its larger screen size.  You can, however, detect the iPad simply by using the DeviceName property.

 

Example:

<%

  set bhObj = Server.CreateObject("cyScape.browserObj")

  if bhObj.MobileDevice = true then

     Response.Redirect "http://mobile.mysite.com/"

  end if

%>

 

See Also:

DeviceName Property

Detecting Mobile Devices