Skip to content

Instantly share code, notes, and snippets.

@arunpjohny
Created March 8, 2013 06:51
Show Gist options
  • Save arunpjohny/5114676 to your computer and use it in GitHub Desktop.
Save arunpjohny/5114676 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
</head>
<body>
<h1>Framed</h1>
<input type="button" value="click"/>
</body>
<script>
$(document).ready(function(){
$('input').click(function(){
console.log('clicked');
$(window).trigger('custom-event')
});
});
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment