![]() |
|
|
|||||||
![]() |
HTML - Close a window when it loses focus |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I have a url that opens a sized popup when clicked.
Is it possible to embed the popup's html with javascript so that it automatically closes itself when focus is lost? Anyway, I looked at onfocus() and was hoping to find something like onfocusLost()... Thank you. -- ELKNews FREE Edition - Empower your News Reader! http://www.atozedsoftware.com Fernie |
|
|
|
|
#2 |
|
Posts: n/a
|
Previously in alt.html, Fernie <Fernie@not_thisDocSignings.net> said:
> I have a url that opens a sized popup when clicked. Not here it doesn't. > Is it possible to embed the popup's html with javascript so that it > automatically closes itself when focus is lost? Possible, yes. Will it work? Maybe. Sometimes. But is that what the user wants? Then again, does the user want the popup in the first place? Probably not. -- Mark Parnell http://www.clarkecomputers.com.au "Never drink rum&coke whilst reading usenet" - rf 2004 |
|
|
|
#3 |
|
Posts: n/a
|
"Mark Parnell" <> wrote in message
news: m.au... > Previously in alt.html, Fernie <Fernie@not_thisDocSignings.net> said: > >> I have a url that opens a sized popup when clicked. > > Not here it doesn't. > >> Is it possible to embed the popup's html with javascript so that it >> automatically closes itself when focus is lost? > > Possible, yes. Will it work? Maybe. Sometimes. But is that what the user > wants? Then again, does the user want the popup in the first place? > Probably not. > > -- > Mark Parnell Hi, I found the right method, onBlur(). Anyway, the popup is opened when the user clicks on a url and not automatically when they go to my page; so I am guessing (and would hope) that it would open on your system, unless you have javascript disabled. Best Regards, Fernie -- ELKNews FREE Edition - Empower your News Reader! http://www.atozedsoftware.com |
|
|
|
#4 |
|
Posts: n/a
|
Fernie wrote
> I have a url that opens a sized popup when clicked. No you don't. At least you don't on any of my browsers. What is wrong with simply using the window I have already provided you with? > Is it possible to embed the popup's html with javascript so that it > automatically closes itself when focus is lost? Possibly. > Anyway, I looked at onfocus() and was hoping to find something like > onfocusLost()... I'll bet you didn't find it You should have been looking for onBlur. -- Cheers Richard. |
|
|
|
#5 |
|
Posts: n/a
|
Previously in alt.html, Fernie <Fernie@not_thisDocSignings.net> said:
> Hi, I found the right method, onBlur(). Anyway, the popup is opened when > the user clicks on a url and not automatically when they go to my page; so I > am guessing (and would hope) that it would open on your system, unless you > have javascript disabled. Then you would guess (and hope) wrong. My browser will not allow any new window to open unless I specifically tell it to. As it should. If I want a new window opened, I will do it myself. -- Mark Parnell http://www.clarkecomputers.com.au "Never drink rum&coke whilst reading usenet" - rf 2004 |
|
|
|
#6 |
|
Posts: n/a
|
"Fernie" <Fernie@not_thisDocSignings.net> wrote in message news:BF733DB637B6E240Fernie@not_thisDocSignings.ne t... >I have a url that opens a sized popup when clicked. > > Is it possible to embed the popup's html with javascript so that it > automatically closes itself when focus is lost? > > Anyway, I looked at onfocus() and was hoping to find something like > onfocusLost()... > Even better - don't open the popup. http://karlcore.com/articles/article.php?id=25 -- -Karl Core Please Support "Project Boneyard": http://www.insurgence.net/info.aspx?...&item=boneyard |
|
|
|
#7 |
|
Posts: n/a
|
Fernie wrote:
> Anyway, the popup is opened when > the user clicks on a url and not automatically when they go to my page; so I > am guessing (and would hope) that it would open on your system, unless you It still will not open on my system, unless I specifically allow it to. > have javascript disabled. Nope. -- Cheers Richard. |
|
|
|
#8 |
|
Posts: n/a
|
In article <BF733DB637B6E240Fernie@not_thisDocSignings.net> , Fernie
(Fernie@not_thisDocSignings.net) dropped a +5 bundle of words... > I have a url that opens a sized popup when clicked. > > Is it possible to embed the popup's html with javascript so that it > automatically closes itself when focus is lost? > > Anyway, I looked at onfocus() and was hoping to find something like > onfocusLost()... onBlur -- Starshine Moonbeam mhm31x9 Smeeter#29 WSD#30 sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM |
|
|
|
#9 |
|
Posts: n/a
|
Thank you, and everyone else who responded.
Best Regards, Fernie "Starshine Moonbeam" <> wrote in message news:... > In article <BF733DB637B6E240Fernie@not_thisDocSignings.net> , Fernie > (Fernie@not_thisDocSignings.net) dropped a +5 bundle of words... > >> I have a url that opens a sized popup when clicked. >> >> Is it possible to embed the popup's html with javascript so that it >> automatically closes itself when focus is lost? >> >> Anyway, I looked at onfocus() and was hoping to find something like >> onfocusLost()... > > onBlur > > > -- > Starshine Moonbeam > mhm31x9 Smeeter#29 WSD#30 > sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM > > > > > > > > > -- ELKNews FREE Edition - Empower your News Reader! http://www.atozedsoftware.com |
|
|
|
#10 |
|
Posts: n/a
|
I read your article and I really don't think that there is anything wrong
with an inoffensive little popup that display suppplimentary information on user demand. I'm helping a friend with a site and I'll tell you for a fact that people use our little popup windows like crazy. We used to take the visitor to a new page but this has changed and I truly feel that this provides the end user with a cleaner, more pleasant browsing experience. Best Regards, Fernie "Karl Core" <> wrote in message news:coj617$afd$... > > "Fernie" <Fernie@not_thisDocSignings.net> wrote in message > news:BF733DB637B6E240Fernie@not_thisDocSignings.ne t... >>I have a url that opens a sized popup when clicked. >> >> Is it possible to embed the popup's html with javascript so that it >> automatically closes itself when focus is lost? >> >> Anyway, I looked at onfocus() and was hoping to find something like >> onfocusLost()... >> > > Even better - don't open the popup. > http://karlcore.com/articles/article.php?id=25 > > -- > -Karl Core > Please Support "Project Boneyard": > http://www.insurgence.net/info.aspx?...&item=boneyard > -- ELKNews FREE Edition - Empower your News Reader! http://www.atozedsoftware.com |
|