function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
downloadingdownloading 

Browser Name

HI,

I want to display the name of the browser which i am using

and wanna display the name on the vf page , How could i achieve this

Could anybody help me with the sample code

 

Thank You,

Himanshu ParasharHimanshu Parashar

Do you want to just show browser name or do you want to use that in controller

Himanshu ParasharHimanshu Parashar

I don't think that there is anyway to direct use that but simplest way to show is using javascript

 

<script>

var txt=navigator.appName;

document.getElementById("example").innerHTML=txt;

</script>

 

here example is your outputtext id

 

you can also get uri using javascript