top button
Flag Notify
Site Registration

How can i identify that which fonts has been used in the user's browser?

+2 votes
446 views
How can i identify that which fonts has been used in the user's browser?
posted May 21, 2014 by Divya Bharti

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Have the solution below:

function getUserBrowsersFont() 
{
    var browserHeader = document.getElementById('header');
    return browserHeader.style.font;
}

this function will exactly do what you want. On execution It will return the User/visitor Browsers Font Type.

answer May 22, 2014 by Rajni
...