Skip to content

Instantly share code, notes, and snippets.

@prabindh
Created December 30, 2013 03:15
Show Gist options
  • Save prabindh/8177375 to your computer and use it in GitHub Desktop.
Save prabindh/8177375 to your computer and use it in GitHub Desktop.
<html>
<head>
<script>
function loadImage(ctx)
{
alert("Image is loaded, context is = ");
alert(ctx);
}
</script>
</head>
<body>
<img src="my.gif" onload="loadImage(1)" width="10" height="10">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment