Iframe
Because of same-origin policy on browsers, can use javascript to access DOM elements if not from the same origin
Message passing from iframe to window
Can use window post message or custom events dispatching
Communicating Between
Inside iframe
Inside parent window
DOM
Deprecated Permission in Iframe unless allowed:
Geolocation (getCurrentPosition and watchPosition)
Midi (requestMIDIAccess)
Encrypted media extensions (requestMediaKeySystemAccess)
Microphone, Camera (getUserMedia)
Last updated