1
2
3 VaR Newwin = Null ;
4 Function Popup_page ()
5 {
6 // Here, a new window is opened, and the properties of this window are set. You do not need to set the pop-up layer (I will not write that style). The data on this page can also be obtained in its parent window.
7 Newwin = Window. Open ( ' Writeemail. aspx ' , ' Newwindow ' , ' Height = 550, width = 800, Top = 60, Left = 120, toolbar = No, menubar = No, scrollbars = Yes, resizable = Yes, location = No, status = Yes ' )
8 If (Newwin)
9 {
10 If ( ! Newwin. Closed)
11 {
12Newwin. Focus ();
13}
14 }
15 }
16 Window. onfocus = Function () {
17
18 If (Newwin) {
19If(!Newwin. Closed)
20Newwin. Focus ();
21}
22 } ;
23
24 Zookeeper Doc ument. onfocus = Function () {
25
26
27 If (Newwin) {
28If(!Newwin. Closed)
29Newwin. Focus ();
30
31}
32
33 } ;
34
35
36
37 Window.doc ument. onclick = Function () {
38
39
40 If (Newwin) {
41If(!Newwin. Closed)
42Newwin. Focus ();
43
44}
45
46 } ;
47
48 Window.doc ument. ondblclick = Function () {
49
50
51 If (Newwin) {
52If(!Newwin. Closed)
53Newwin. Focus ();
54
55}
56
57 } ;
58
59
60