Maintain popup link on update page in Javascript

Does anyone know if there is a way to keep the link to the popup after refreshing the page so that you can keep getting it?

My initial thought was to fine tune the reference variable using JSON, save it in a cookie and eval () after refreshing the page, but I still had no way to check it.

Am I on the right track, or is it even possible?

+3
source share
2 answers

Inside your child window try something like this:

window.setInterval(function(){
 try{
  window.opener.win = window;
 } catch(e){}
}, 300);

I got it from here . It seems to work in all browsers.

+2
source

, http/ , , . , , , , iframe Ajax?

, !

0

Source: https://habr.com/ru/post/1795830/


All Articles