<html> <body> <img id="myImage" src="yourimage.gif"><br> <button onclick="alert(document.fileCreatedDate);">Document Created On</button> </body> </html>