SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Apr 2003
    Location
    Pittsburgh, PA
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question can I use "onBlur" in <body> for IE browsers?

    In a page located at:
    http://www.bradleybrowndesign.com/bb...mapwindow.html
    I am trying to use a simple JavaScript command to close the window when it is no longer in focus:
    <BODY onBlur="window.close();">
    This works in IE 5.1 for Mac and in Mozilla/Netscape, but in the Windows IE browsers I have tried, clicking anywhere closes the window, even clicking on the Flash animation in the window itself. Very bad.

    If it makes a difference, you should really access the mapwindow.html page by going to http://www.bradleybrowndesign.com/bbdg/alpha/. Click to enter the site, and use the menu on the left to go to "about us", "location". Then click on the map to get the popup window.

    Am I using an outdated form of onBlur? Any assistance would be greatly appreciated! Thanks.
    Mark M.

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Mark,

    I had a look at it but couldn't find a work-around. Perhaps someone else will.

    Clicking on any form control, or on a Flash object, will change the input focus (IE6 on Win2K).

  3. #3
    SitePoint Member
    Join Date
    Apr 2003
    Location
    Pittsburgh, PA
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Mike.

    I went back to the site that inspired me to try to use a Flash map in a popup window (http://www.wall-to-wall.com/ -- click on "map") and I see that they don't use anything like an onBlur(), maybe for the reason we are talking about.

    So I guess I will just have to leave the window open and like it.

    If anyone knows why clicking on a particular object _within_ a window should change the focus away from that window, I would be interested to hear it.

    Mark McLaren


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •