| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <title>window open</title> | |
| 4 <script type="text/javascript"> | |
| 5 var new_window; | |
| 6 | |
| 7 function OnClick() { | |
| 8 // Open popup to the url from the given query string. | |
| 9 var url = window.location.search.substring(1); | |
| 10 if (!new_window) { | |
| 11 new_window = window.open(url, "_blank", | |
| 12 "left=10, top=10, height=250, width=250"); | |
| 13 } | |
| 14 } | |
| 15 | |
| 16 function OnKeyPress() { | |
| 17 var char_code = String.fromCharCode(event.keyCode); | |
| 18 if (char_code == 'c') { | |
| 19 new_window.close(); | |
| 20 } | |
| 21 } | |
| 22 </script> | |
| 23 </head> | |
| 24 <body onkeypress="OnKeyPress();" onclick="OnClick();"> | |
| 25 ChromeFrame full tab mode window open popup test | |
| 26 </body> | |
| 27 </html> | |
| OLD | NEW |