blob: 534a683a6545af191199393be84983b016afa2bb [file] [log] [blame]
Phil Dubach66a36772009-10-30 14:27:21 -07001<!-- Copyright (C) 2009 The Android Open Source Project
2
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14-->
15
16<html>
17 <head>
18 <title>javascript window</title>
19 </head>
20 <script type="text/javascript">
George Mounta77e7622012-06-19 11:05:09 -070021 var childWindow;
Phil Dubach66a36772009-10-30 14:27:21 -070022 function fireOpen() {
23 childWindow = window.open();
24 childWindow.document.title = "javascript child window";
25 childWindow.document.write("javascript child window");
26 childWindow.focus();
George Mounta77e7622012-06-19 11:05:09 -070027 setTimeout(function(){childWindow.close();}, 2000);
Phil Dubach66a36772009-10-30 14:27:21 -070028 }
29 </script>
30 <body onload="fireOpen()">
31 javascript window test
32 </body>
33</html>
34