Forum Moderators: open
<head>
<script type="text/javascript">
function CloseWindow()
{
window.close();
}
</script>
</head>
<P>
<form method="POST" action="http://example.net/action.php">
<LABEL for=Name" Style="color:white">Full Name: </LABEL>
<INPUT name=personal_Name type="text" style="color: black ; font-size : 12pt ; font-weight : bold" size="30" tabindex="1"><BR>
<LABEL for=Birthdate" Style="color:white ">Birthdate:: </LABEL>
<INPUT name=personal_Birthdate type="text" style="color: black ; font-size : 12pt ; font-weight : bold" tabindex="2"><BR>
<LABEL for=eMail" Style="color:white ">eMail:: </LABEL>
<INPUT name=personal_eMail type="text" style="color: black ; font-size : 12pt ; font-weight : bold" tabindex="2"><BR><BR>
<LEGEND><LABEL for=Comments or Message Style="color:white"> Comments or Message</LABEL>Comments or Message</LEGEND>
<TEXTAREA name=Comment style="color: black; font-size:12pt; font-weight: bold; font-family: Helvetica" rows="16" cols="62" tabindex="38">
</TEXTAREA>
         <BR><INPUT type="submit" value="Submit Form"> <INPUT type="reset"><INPUT type="button" value="Close" onclick="CloseWindow()"><BR><BR>
</P>
</Form>
[edited by: tedster at 8:03 pm (utc) on Oct. 6, 2009]
[edit reason] make the form action an example url [/edit]
Most browsers won't let you close a "main" window. Usually they give you an error alert first.
The only thing I see is the paragraph tag around the form, which I believe is invalid HTML (could be wrong there.) Use <p> </p> above and below the form instead; validate the page [validator.w3.org], make sure it's not some html coding error causing a problem.
<a href="http://www.example.org/Site/Financial_AgreementNP.html" target=" blank">
Perhaps I have the wrong understanding of architecture here, and maybe that's why what should work, doesn't work. The page is not a popup window? should I make it a popup? If so, how?
Thanks
Doug
[edited by: tedster at 8:15 pm (utc) on Oct. 7, 2009]
[edit reason] no personal urls, please [/edit]
Some experiments via PM have indicated window.close() is working on any of these child windows, so it has to be something else . . . .