25 lines
724 B
HTML
25 lines
724 B
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
|
<html>
|
|
<head>
|
|
<script>
|
|
function pressSend() {
|
|
alert("Middle Window Opened");
|
|
document.getElementById('SendButton').click();
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body onLoad="pressSend()">
|
|
This doc should only be opened by open.html.
|
|
<br/>
|
|
If this doc did not submit itself then this window would have no history and
|
|
always be allowed to close. We need to test that the window can close because
|
|
it was opened by the DOM.
|
|
<br/>
|
|
<br/>
|
|
If running this test manually, click the send button below if you are not redirected.
|
|
<form name="whatever" action="close.html" method="post">
|
|
<input name="send" value="Send" id="SendButton" type="submit">
|
|
</form>
|
|
</body>
|
|
</html> |