Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
 <script>
   window.onload = function(){
     var input = document.getElementById('input1');
     input.src="";
     input.addEventListener('load', loadImage, false);
     input.src = 'http://theoffguard.net/wp-content/upLoads/2012/04/Nick-Cage.jpg';
   }
   function loadImage()
   {
     console.log("Image is loaded");
   }
</script>
</head>
<body>
  <input type="image" id="input1" src="" /> 
</body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers