Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q588 How can I open a window that calls up a cgi perl but without the name/value pairs being visible as part of the new windows url?

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>

Feedback on 'Q588 How can I open a window that calls up a cgi perl but without the name/value pairs being visible as part of the new windows url?'

©2018 Martin Webb