Q:

How to determine in Java script the height of a div is in Percentage or pixels

Is there a way in javascript to determine wether the height of the Div is in %
<div id="dvPercentage" style="height: 80%">

How do I get that the height of the div was given in Percentage.

A:

Just access the the height of the style object of the element.
document.getElementById("objectId").style.height

