This is a simple proof-of-concept for cross-window communication through iframes.
Requirements
- Node.js (enough to run Express.js)
- Yarn
How to install
- Clone this repo
- Navigate to
/child
- Install dependencies:
yarn install
- Run the child:
PORT=<port> yarn start
(PORT
defaults to3001
when unspecified) - Navigate to
/parent
- Install dependencies:
yarn install
- Run the parent:
PORT=<port> yarn start
(PORT
defaults to3000
when unspecified) - View the parent in the browser through:
http://localhost:<PORT>
(PORT
is the parent port specified on step 7).