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() { | 5 function popup() { |
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 "_blank", "menubar=1, resizable=1, width=350, height=250"); | 7 "_blank", "menubar=1, resizable=1, width=350, height=250"); |
9 } | 8 } |
10 | 9 |
11 </script> | 10 </script> |
12 </head> | 11 </head> |
13 <body onunload="popup()"> | 12 <body onunload="popup()"> |
14 pop-up test page | 13 pop-up test page |
15 </body> | 14 </body> |
16 </html> | 15 </html> |
OLD | NEW |