javascript - add properties in window.open for next page -


I have two sites A and B in a domain

Actually, I am in Site A And want to open javascript per site b:

  window.open ("B.html", "...", "attribute");  

Now, I want to use these properties to merge the Site A before "content load". There is a way to get these attributes after the site B is loaded:

  document.addEventListener ('DOMContentLoaded', function () {// Receive "Properties" from the "Sentence" window. How does it work? Or is there another way to do this work? "Stateless" comma between the web page - Seatwise says in the comment, "I do not want to use!"  

As Here's the best one.

  page2.html? Param = paramvalue   

the window.open Can be done as,

  & lt; a href = "page2.html? Param = paramvalue "target =" _ blank "> / code>  

'new window' script these values ​​

  window.location.search  

can access: Br>


Comments