Jump to content

Detecting Browser/ Operating System/ Mobile Device

Recommended Posts

  • Administrators

You have a bunch of routines in SmartCL.System:



function w3_getIsIPad: Boolean;
function w3_getIsIPhone: Boolean;
function w3_getIsIPod: Boolean;
function w3_getIsAndroid: Boolean;
function w3_getIsSafari: Boolean;
function w3_getIsFirefox: Boolean;
function w3_getIsChrome: Boolean;
function w3_getIsInternetExplorer: Boolean;
function w3_getIsOpera: Boolean;
function w3_getIsMobile: Boolean;
Link to post
Share on other sites

Jørn has listed some functions (or all the functions), but if you write "browserAPI" and then CTRL+Click on that, it will take you to the driver classes. On startup SMS does an extensive test of what environment it is running on and create a "driver" class. The driver is in charge of prefix and postfix (e.g "moz" vs. "webkit" vs. "oo" etc..) of tags.


If you are looking for a way to determine what browser is used, because you want to prefix or postfix tag -- then you can just use the functions of the current browserAPI function.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...