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
Post a Comment