HTML/CGI.pm question

Jason Stephenson jason at sigio.com
Fri Nov 8 11:15:41 EST 2002


Actually that onLoad="self.close();" will close the window as soon as 
the  document is loaded. You want something like this for a close button:

<input type="button" value="Close" onClick="window.close();">


Kenneth E. Lussier wrote:
> On Thu, 2002-11-07 at 16:23, pll at lanminds.com wrote:
> 
>>Hey,
>>
>>Anyone know how to make those neat little pop-up windows in Netscape?
>>
>>I'm want to connect an href element to a new window which also 
>>contains a "close window" button.
> 
> 
> You can use the HTML frame targets. Something like:
> <a href="/path/to/some/script/or/page" target="_blank">
> 
> In the new window that opens, have the "Close Window" button open a new
> page with this:
> 
> <html>
> <head>
> <title>Window Closer</title>
> </head>
> 
> <body ONLOAD="self.close()">
> </body>
> </html>
> 
> I can't help you with the CGI stuff, though.
> 
> C-Ya,
> Kenny




More information about the gnhlug-discuss mailing list