But I don't know if you have encountered such a situation. The new window is opened through <a href = ""/> instead of 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:
CopyCode The Code is as follows: <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> a.html </title>
<Meta name = "generator" content = "editplus"/>
<Meta name = "author" content = ""/>
<Meta name = "keywords" content = ""/>
<Meta name = "Description" content = ""/>
</Head>
<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>
</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.
send the question here to help you figure it out.
although there are few articles , I think such a problem is worth mentioning on the homepage .~~~ Pai_^
it seems as if the mountains and rivers are not moving, and the fog remains intact.