Bellhop is a simple event-based communication layer between the page DOM and an iframe. It doesn't require any additional dependencies. The minified version of the library is less than 3K. Super easy to use and setup.
Install can be done with Bower:
bower install bellhop
Alternatively, can be done with NPM:
npm install bellhop-iframe
Here's a very simple example to get started. We have two pages
child.html.This is the minimum you need to start get them talking to each other.
Bellhop has one optional dependency which is a polyfill for
Function.prototype.bind. The bind method is available in the following browsers: IE 9+, Safari 5.1.4+, Opera 11.60+, Firefox 4.0+, Chrome 7+.
See the documentation for more detailed information about the API.
Copyright (c) 2015 CloudKid
Released under the MIT License.