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

RE: Open a brand new browser window with Perl

Thread Previous
Ron Goral
February 7, 2002 07:25
RE: Open a brand new browser window with Perl
Message ID:

I hate it when I make a post and then answer my own questions, but Morbus
made me recall the window resizing and moving methods useable via
JavaScript.  If I were to "print" the new page with an onLoad event that
called the resizeTo and moveTo methods, I can resize and move my windows
anywhere I wish.  It's not a new window, but it sure walks and talks like
one.  The same is true of all the window properties.

Sorry 'bout the bad post guys.


 >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

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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About