Here is the situation….
I have a iframe, which is located to my client side, and the iframe content is in my server.
So, when the user do something, my iframe will appear, and they can type something, and post to my server. But the question is….The iframe itself can’t disappear.
The only thing I want to do, is submit and hide the iframe. I can do a button in my client side to hide my iframe, but the iframe can’t control the js in the client side. And the client side also can’t control button on my iframe.
So, I am thinking to make a button in the client side, and some kind of command to submit the button….But the question is how can I do so? Thank you.
Here is the situation…. I have a iframe, which is located to my client
Share
The iframe and the parent document can communicate through javascript:
window.frames["iframe_name"]. This is thewindowobject of the iframe, from here on you can do just about anything with js.window.opener. Again, this is thewindowof the parent document.Maybe this question helps you too.