As you know em is a relative font measurement where one em is equal to the height of the letter \"M\" in the default font size. An advantage in using it is because you will be a
I think this is what you're looking for:
function getDefaultFontSize () {
// this will return the default* value assigned to the style: fontSize
defsize=(document.body.style.fontSize)
alert('The default font size of your browser is: "' + defsize + '"');
}
*If body has a different fontSize decleration anywhere else in the code (perhaps in some css) the function will return that value. For example:
The above will return a fontSize value of 20px.