B

Passing window object from a.html to b.html via javascript

I have two A.html files

<a href="B.html">B</a> 
<script>
var mywindow = open("child.html","child", "height=200,width=200");
</script>

B.html

<script>
  /*want to use mywindow property .Can we serialize whole window object and pass ? */
</script>

When I go to b.html, we can use the mywindow variable with all its window properties. So that I can still play with the child window from b.html.

+5
source share
1 answer

In B.htmlyou can use:

var win = open ('', 'child');

So far, you are using the same window name ( child) that you used when you first opened the window.

+3
source

All Articles