You are here: irt.org | FAQ | JavaScript | Link | Q588 [ previous next ]
You could just open up a blank window (e.g. bank.htm) and then use a normal form to submit using POST and redirecting the output to the new window:
<script language="JavaScript"><!-- function openWindow() { window.open("blank.htm","MainWindow","toolbar=no,location=no,directories=no,status,menubar=no,scrollbars,resizable=no,copyhistory=no,width=600,height=500"); } //--></script> <form action="/cgi-bin/program.pl" method="post" target="MainWindow" onSubmit="openWindow()"> <input type="text" name="password"> <input type="text" name="account"> <input type="submit"> </form>