javascript - how to use postmessage in an iframe to redirect the user to a page on the main document -
i have page iframe on it, , need button inside frame redirection page, if normal way content of iframe reloaded, need main window change url.
i havent posted code below dont know if possible
yes possible. have send message iframe, when parent receives message, something. here example: http://jsbin.com/necuvi/2/. here documentation on how works. https://developer.mozilla.org/en-us/docs/web/api/window/postmessage
Comments
Post a Comment