2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / dom / resources / middle.html
blobc636dc8a080c9a6884d293b0df4df159f6cc7063
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
5 function pressSend() {
6 alert("Middle Window Opened");
7 document.getElementById('SendButton').click();
9 </script>
10 </head>
12 <body onLoad="pressSend()">
13 This doc should only be opened by open.html.
14 <br/>
15 If this doc did not submit itself then this window would have no history and
16 always be allowed to close. We need to test that the window can close because
17 it was opened by the DOM.
18 <br/>
19 <br/>
20 If running this test manually, click the send button below if you are not redirected.
21 <form name="whatever" action="close.html" method="post">
22 <input name="send" value="Send" id="SendButton" type="submit">
23 </form>
24 </body>
25 </html>