Created
November 5, 2014 08:21
-
-
Save henrikakselsen/eec1c6f264875b5560bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<body id="parentbody"> | |
<iframe src="iframe.html"></iframe> | |
</body> | |
<footer> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$('#parentbody').on('nav_button_pressed',function(event) { | |
alert('catched event from iframe'); | |
alert(event.el_id); | |
}); | |
</script> | |
</footer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment