But I do not know if you have encountered such a situation, the new window is opened through the <a href= ""/> Open, not window.opener or ShowModalDialog open.
In particular, it should be noted that this href point address (page) is not developed by us, for example, we point the href to www.cnblogs.com.
OK, here's the problem: if we have a button on the page where A is located, we can trigger the Click event and do some action. This click event needs to be triggered when the IE window that href opened is closed ...
How do we monitor the window that href opens at this time? (through JavaScript, don't say what the process is.)
Suppose there are a.html as follows:
Copy Code code as follows:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<title> a.html </title>
<meta name= "generator" content= "EditPlus"/>
<meta name= "Author" content= ""/>
<meta name= "keywords" content= ""/>
<meta name= "description" content= ""/>
<body>
<input type= "button" id= "Btnparent" onclick= "alert (' a ');" value= "Click!"/>
<a href= "http://www.cnblogs.com" target= "_blank" >link to b.html</a>
</body>
Now the request is: Click "Link to b.html" open http://www.cnblogs.com.
Open a new window after closing, triggering the Btnparent click event in the A.html ~ ~ ~ ~ ~
---
I believe very few people have done such a thing, or encountered such a problem. And now I happen to meet a demand.
So send the question here and let everyone help to figure it out.
Although the content of the article is very small, but I think, such a question is still worth the first page. ~~~^_^
Calm like a mountain and flowing, heart clear if Hu Feng mist not stained.