<html> <head> <title>test</title> <script language="JavaScript"> var theLargeImg; function loadImage(url) { theLargeImg = new Image(); theLargeImg.onload=imageLoaded(); theLargeImg.src = url; } function imageLoaded() { alert("img height="+theLargeImg.Height+";img width="+theLargeImg.Width+";complete = "+theLargeImg.complete+&"; src= "+theLargeImg.src); } </script> </head> <body> <input type="button" onclick="javascript:loadImage('http://www.google.co.uk/intl/en_ALL/images/logos/images_logo_lg.gif')" value="Load Image"> </body> </html>
function loadImage(url) { theLargeImg = new Image(); theLargeImg.src = url; theLargeImg.onload=imageLoaded(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)