I have a greasemonkey script that opens an iframe containing a form from a different sub-domain as the parent page.
I would like to refresh the parent page when the iframe refreshes after the form submission
I am at the point where I can execute a function when the iframe refreshes, but I cannot get that function to affect the parent document.
I understand this is due to browser security models, and I have been reading up on using postMessage to communicate between the two windows, but I cannot seem to figure out how to send a reload call to the parent with it.
Any advice on how to do that would be very helpful
thanks
相关问题
- how to get selected text from iframe with javascri
- How do you scroll an iframe from within using jque
- How does same-domain policy apply to background sc
- Is there any way to make the background of a 3D-mo
- SecurityError for same-origin image texImage2D
相关文章
- iframe的里内容看不到,但却点得到
- iframe content disappears on Firefox
- Changing an IFrames InnerHtml from codebehind
- Scrolling issues with ExtJS 5 app inside IFrame
- iframe not reading cookies in Chrome
- Can I set an Access-Control-Allow-Origin header to
- Does html5 local storage store per iframe?
- X-Frame-Options ALLOW-FROM a specific site allows
Use:
Note the '*' indicates "any origin". You should replace this with the target origin if possible.
In your parent frame you need:
Replace "my.iframe.org" with the origin of your iFrame. (You can skip the origin verification, just be very careful what you do with the data you get).