OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Popup created using window.open</title> | 3 <title>Popup created using window.open</title> |
4 <script> | 4 <script> |
5 function popup(name) { | 5 function popup(name) { |
6 window.open("data:text/html,<title>Popup Success!</title>" + | 6 window.open("popup-success.html", |
7 "you should not see this message if popup blocker is enabled", | |
8 name, "menubar=1, resizable=1, width=350, height=250"); | 7 name, "menubar=1, resizable=1, width=350, height=250"); |
9 } | 8 } |
10 | 9 |
11 function test() { | 10 function test() { |
12 popup('mywindow'); | 11 popup('mywindow'); |
13 popup('_blank'); | 12 popup('_blank'); |
14 } | 13 } |
15 </script> | 14 </script> |
16 </head> | 15 </head> |
17 <body onload="test()"> | 16 <body onload="test()"> |
18 pop-up test page | 17 pop-up test page |
19 </body> | 18 </body> |
20 </html> | 19 </html> |
OLD | NEW |