When you try to get the height of an element that does not exist yet elem.style.height won't work.
So this is how it should be retreived:
document.getElementById('elem_name').offsetHeight;
Subscribe to:
Post Comments (Atom)
Free source code and tutorials for Software developers and Architects using different programming languages: .NET, C#, VB.NET, ASP, PHP, MYSQL, SQL SERVER, ORACLE.
„The reasonable man adapts himself to the world;
The unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.” -George Bernard Shaw-
No comments:
Post a Comment