Suppose there are 2 pages index1 and index2, I get the value of a variable in the following way: $('#class') on index1 page, only a block with such id lies on index2 page, how can I get a value?

  • @RomanAnanev, If you are given a comprehensive answer, mark it as correct (click on the check mark next to the selected answer). - Nicolas Chabanovsky

1 answer 1

If you mean the exchange of information between open tabs, then the simplest one is cookies. If index2 may never have been opened, then you need to open it, for example, in an iframe. But I have a suspicion that you are doing something wrong, in this case you create index3, which returns data to both pages.