I believe that javascript event listening and event bubbling are often used in web projects. Of course, window. opener and window. showModalDialog are also involved in the interoperability between parent and child windows. But I don't know if you have encountered such a situation. The new window is opened by opening, rather than window. opener or showModalDialog.
In particular, note that the address (PAGE) pointed to by this href is not developed by us. For example, we direct href to www.cnblogs.com.
OK, the problem is: if we have a button on the page where a is located, we can trigger the Click Event and perform some operations. This click event needs to be triggered when the IE window opened by href is closed...
At this time, how do we monitor the windows opened by href? (Through javascript, do not talk about processes or things ).
Assume a.html is as follows:
The Code is as follows:
A.html
Link to B. HTML
Now the requirement is: click "Link to B. HTML" to open the http://www.cnblogs.com.
After closing the window, send the btnParent Click Event in a.html ~~~~
---
I believe that few people have used such applications or encountered such problems. But now I have met such a requirement.
So I sent the question here, asking you to give it a try.
Although there are few articles, I think such a question is worth mentioning on the homepage .~~~ Pai_^
It seems like a mountain flow of water does not move, the heart is clear if Wu Feng mist does not touch.