There is a link to the picture, is it possible to get the width of the height and size of the picture on js?
Sample code for: jsfiddle.net
<a href="./img/1.jpg" >ΠΠ°ΡΡΠΈΠ½ΠΊΠ° 1</a> <br> <a href="./img/2.jpg" >ΠΠ°ΡΡΠΈΠ½ΠΊΠ° 2</a> <br> <a href="./img/3.jpg" >ΠΠ°ΡΡΠΈΠ½ΠΊΠ° 3</a> <br><br> <div id="image_url"></div> Js:
$('a').click( function(e) { e.preventDefault(); var img_url = $(this).attr('href'); $("#image_url").text(img_url); });
.width(200);- this is set, and getvar w = .... .width();- Stackjs. - user199209