H
H
Hazrat Hajikerimov2017-12-06 14:47:44
JavaScript
Hazrat Hajikerimov, 2017-12-06 14:47:44

How to transfer data from the site example.com to the same one, but only inside the iframe?

Let me explain in more detail:
We have an example.com site, it is built into (for example) google.com via an iframe. At some point, the user clicks on the link (target="_blank") in example.com, which is inside (iframe) google.com, and a new tab for example.com opens.
There, the user performs certain actions and clicks the ready button. We write its actions (data) to localStorage and after clicking done, we give window.close () and return to google.com, where the example.com iframe received data from localStorage and processed it.
The problem is that this scheme does not work in safari, what is the solution?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question