Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: onBlur


Message #1 by plscribner@w... on Thu, 18 Oct 2001 18:09:10
No, not really. The onFocus, onClick or similar event.

/Robert



-----Original Message-----
From: plscribner@w... [mailto:plscribner@w...] 
Sent: den 21 oktober 2001 08:50
To: JavaScript HowTo
Subject: [javascript_howto] RE: onBlur


Robert, thanks very much for your reply.  I can use the onFocus event of 
the main window I guess to close any subsidiary windows that are open.  
Did you have some other way in mind other than onFocus in the main window?
Just checking to see if there is another way to do it that I haven't seen.
Thanks again.

/peter

> The problem is that the BODY tag recieves the onBlur event, since the A 
tag
> recieves focus.
> I would rather have a function in the main window that closed the small
> window.
> 
> 
> /Robert
> 
> 
> 
> -----Original Message-----
> From: plscribner@w... [mailto:plscribner@w...] 
> Sent: den 18 oktober 2001 20:09
> To: JavaScript HowTo
> Subject: [javascript_howto] onBlur
> 
> 
> Hi all
> 
> I know I have seen an answer to this question in the past but I'll be 
> darned if I can find it again now that I need it. Anybody remember it?
> 
> I have an FAQ page which is opened as a new, small window.  The page has 
a 
> bunch of links which send the user to the appropriate <A NAME=  tag 
within 
> the document.  No problem there, pretty typical.
> 
> I want to use <Body onBlur="window.close('this')> so that when a user 
> clicks outside the FAQ page the FAQ page will close.  The problem is 
that 
> clicking on any of the FAQ links INSIDE the page, for some reason, seems 
> to fire the onBlur event and the page closes.
> 
> Has anyone had that experience and is there a solution?
> 
> Thanks in advance for your help, it's appreciated.
> 
> peter
> 

$subst('Email.Unsub')

  Return to Index