The parent window refreshes the child window and the child window refreshes the parent window's JS.
a problem today is that the main menu is placed in a iframe surface, and the link is controlled by the current page. The links to face are shown in red. But when you click on the parent window to change the contents of main, the links in iframe remain unchanged. At first, you want to judge by the content of the content display area, but immediately the consciousness does not work, and then want to link the links between the parent window and the child window, which is still very troublesome. Finally, when you think of the link to the parent window, the content of the content display area changes, then the state of the child window should be the state of the loading time, as long as it is refreshed.
search online immediately, the result is very disappointed, the search is the child window to refresh the parent window JS, but no parent window refreshes the JS code of the child window. Then I thought about it. - the parent window refresh the child window, is not the link that changes SRC is OK? Immediately start, the effect immediately came out, on the two line of code, simple to you can not believe it!
[code]/*
zdz works,
*/
function reloadleft () {
var leftiframeid = =; Go into onclick=.quot; reloadleft ().Quot; it's OK.
[code].lt; a href=.quot; contact.html.quot; target=.quot; main.quot; title=.quot; click View.Quot; onclick=.quot; reloadleft (). The window refreshes the js
[code]self.opener.location.reload () () of the parent window;
window.opener.location.reload (); / / / / key is this: refresh the parent window [/code]