cgi redirect with NO menubar, statusbar, or toolbar?

They have: 1,587 posts

Joined: Mar 1999

is it possible to have a cgi redirect so that it opens a new window with no menubar, statusbar, or toolbar?

They have: 850 posts

Joined: Jul 1999

Just gotta know the javascript for the command, than print it out. The following works:

my $output = '<script>window.open(\'page.html\', \'Name\',\'width=400,height=300,scrollbars=1,noresize\')</script>';
print "Content-type:text/html\n\n";
print $output;
'

hope that helps

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

then you may want to close the current window...

print qq~
<script language=javascript>
<!--
window.close()
//-->
&lt;/script&gt;
~;
'

Mark Hensler
If there is no answer on Google, then there is no question.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.