1

I use window.open(...); but the new window not get global variable of original window, so i only try many times as below

<script type="text/javascript" src="...."/></script>
<link rel="stylesheet" href=".....css"/>

But the imported sources are too much,and they have to execute many program in these source such as go to server get json and deal with it or get excel and declare key and value into global variable in order to implements internationalization and so on.

How can i do this ?

update

i use window.opener and get original global variable,but the original method can not debug such as step into,and the css is not in new window,how can i slove it?

王奕然
  • 3,891
  • 6
  • 41
  • 62
  • possible duplicate of [how to access parent window object using jquery?](http://stackoverflow.com/questions/2167455/how-to-access-parent-window-object-using-jquery) – Sarath Apr 03 '14 at 10:17

1 Answers1

1

Use window.opener in your opened window

Sarath
  • 9,030
  • 11
  • 51
  • 84