<html> <body> <img id="myImage" src="yourimage.gif"><br> <button onclick="alert(myImage.fileModifiedDate);">Image Modified On</button> </body> </html>