javascript - Trigger iframe hiding from within iframe -
i have small widget users can install on sites. need "close" (ie. hide iframe) when has performed action within widget.
the big issue here domain widget installed on different domain of widget itself.
ie. source of widget embed http://example.com/embed.js while may embedded on http://cnn.com
i'm aware there cross-domain security issues prevent accessing parent doc window.parent.document
. so, i'm asking clever workarounds make work.
for it's worth, i'm dynamically creating iframe within embed.js code.
Comments
Post a Comment