Jump to content

Detecting Browser/ Operating System/ Mobile Device

Recommended Posts

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;

Share this post

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.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now