Youdao JavaScript listening to the browser problem _javascript skills

Source: Internet
Author: User
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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.