There is an element: <img src="wallpapers/bg.jpg"> How to know the size of this element or image using native JavaScript without using jQuery ?

    1 answer 1

     document.getElementsByTagName('img')[xxx].height document.getElementById('asd').height