Help if possible. Here I open the window

myWindow=parent.window.open(бла,бла) 

I send the myWindow.команда - everything works, but when I reload the page with which the window was opened, the command is no longer executed until I click on parent.window.open .

The essence of the question: is it possible to make it so that after reloading the page from which the window was opened, pressing the button with the command would have the window search function by name or something else, and if so, would focus on it and then transmit the command is in it, without reloading the window itself, into which you need to transfer the command.

    2 answers 2

    As always, there are options. =)

     window.onunload = function(){myWindow.close();} 

    One of them is to set the label in the parent window and monitor it from the child window ( window.opener.getMetka() ). When changing the label, open the window again. All this is done using setTimeout() , and the label can be set temporarily.

    • Unfortunately, while with JavaScript on you and standing, if you wouldn’t have difficulty writing exactly what and where, I will be grateful, if not, what does not mean fate. - djon198360 2:42 pm

    Javascript is updated every time the page loads, remember it does not work out. If you need to remember something, write to the cookie and read them when loading the page.

    • To write cookies you need Javascript knowledge, but they are not there yet. Or I do not understand something about the knowledge of Javascript. - djon198360