Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Window closing


Message #1 by andy@a... on Thu, 28 Jun 2001 13:24:17
Andy,
HAve you tried:
"javascript:self.close()"
Justin

 --- andy@a... wrote: > Hi
> 
> I have a web app which opens a framed window without
> address bar, staus 
> bar etc. The window has 3 frames. The window is
> opened with the 
> name 'DocWindow'
> 
> In one of the frames I have a page with a close
> button. The code attached 
> to this button is
> onclick="javascript:DocWindow.close()". 
> 
> It does not work, what am I doing wrong.
> 
> I've also tried calling a separate close function in
> case it did not like 
> the javascript:.... bit, but it still faulted.
> 
> 
> Regards
> 
> Andy Green
>


  Return to Index