With jQuery library-
Use .width()
and .height()
.
More in jQuery width and jQuery heigth.
Example Code-
$(document).ready(function(){
$("button").click(function()
{
alert("Width of image: " + $("#img_exmpl").width());
alert("Height of image: " + $("#img_exmpl").height());
});
});