html - Check visibility of an object with JavaScript -


i have variable called "object". how can check javascript if visible?

i tried !object.getattribute("dislay", "none")... doesn't work.

could me please?

thank you!

function isvisible(obj) {   return obj.offsetwidth > 0 && obj.offsetheight > 0; } 

as it's implemented in jquery.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -