You do not need HTML5 functions for this, but you can easily do this with javascript:
myNewWindow = window.open() opens a new window and assigns the window object of this new myNewWindow window, so you can easily access the new DOM window from the opening script using myNewWindow -variable.
It also works differently: in a script in a new window, you can use window.opener to access the window object and the DOM of the opening window.
Just make sure that the content of all your windows is loaded from one domain, since javascript does not allow you to control the content downloaded from another source (for more details on this subject, see the "same origin policy").
source share