Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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?

irt.org | Knowledge Base | JavaScript | Link | Q588 [ previous next ]

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 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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.