Tag Archives: Browser

Get User Browser Information in Lightning Component

We can use $Browser global value provider to get information about the hardware and operating system of the browser accessing the application.

Use $Browser in Lightning Component:


Use $Browser in Lightning JS Controller:

doInit : function(component, event, helper) {
    var device = $A.get("$Browser.formFactor");
    alert("You are using a " + device);