Skip to content

Instantly share code, notes, and snippets.

@sdqali
Created February 4, 2012 18:25
Show Gist options
  • Save sdqali/1739325 to your computer and use it in GitHub Desktop.
Save sdqali/1739325 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type="text/javascript">
function doSomething() {
alert("Foobar");
// do something more useful here
};
</script>
</head>
<body>
<img src="https://www.google.com/intl/en_com/images/srpr/logo3w.png" onClick="doSomething();" />
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment