develooper Front page | perl.beginners | Postings from February 2002

Re: Open a brand new browser window with Perl

Thread Previous | Thread Next
Morbus Iff
February 7, 2002 07:11
Re: Open a brand new browser window with Perl
Message ID:
 >Is it possible to open a brand new browser window and set it's size,
 >location and characteristics (no menu bar, no status bar, etc.) using Perl
 >or is it necessary to always use the same window that has called the script?

With Perl, no. But you can certainly tell Perl to send some javascript that 
does what you want to the browser. Have Perl spit out something like this 
to the browser window:

     <SCRIPT LANGUAGE = "Javascript" TYPE="text/javascript"><!--
     function open() {'/path/to/file.shtml', 'Your New Window',
     directories=0,status=no,resizable=0'); }
     <title>See Other Window</title>
  <body onLoad="open()">

   <h1>Please See The Other Window</h1>


Morbus Iff ( softcore vulcan pr0n rulezzzzz ) &&
please me:
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / morbus

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About