dhtml question: onfocusout event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bbass@hotmail.com

    dhtml question: onfocusout event



    below is the snippet of the code:

    <a href="merc.htm" target="_new_me rc" onfocusout=wind ow.close
    class="left_lin k">

    I have an event inside the <a> tag

    onfocusout=wind ow.close

    the w3 validator says there is no attribute "onfocusout "

    there is no doctype declaration so the validator assumes html4
    transitional

    I am not able to achieve what i want: to close the window when the user
    switches to different window

    any ideas?

  • Els

    #2
    Re: dhtml question: onfocusout event

    bbass@hotmail.c om wrote:
    [color=blue]
    > below is the snippet of the code:
    >
    > <a href="merc.htm" target="_new_me rc" onfocusout=wind ow.close
    > class="left_lin k">
    >
    > I have an event inside the <a> tag
    >
    > onfocusout=wind ow.close
    >
    > the w3 validator says there is no attribute "onfocusout "
    >
    > there is no doctype declaration so the validator assumes html4
    > transitional
    >
    > I am not able to achieve what i want: to close the window when the user
    > switches to different window
    >
    > any ideas?[/color]

    Just one:
    I'd personally hate it if one would be able to close my browser window
    just because I switched to my email client to check a new mail.

    --
    Els http://locusmeus.com/
    Sonhos vem. Sonhos vão. O resto é imperfeito.
    - Renato Russo -

    Comment

    • Stephen Poley

      #3
      Re: dhtml question: onfocusout event

      On 8 Nov 2005 22:53:04 -0800, bbass@hotmail.c om wrote:
      [color=blue]
      >below is the snippet of the code:
      >
      ><a href="merc.htm" target="_new_me rc" onfocusout=wind ow.close
      >class="left_li nk">
      >
      >I have an event inside the <a> tag
      >
      >onfocusout=win dow.close
      >
      >the w3 validator says there is no attribute "onfocusout "[/color]

      That's because there isn't. Checking the spec is a lot quicker than
      asking here:


      [color=blue]
      >there is no doctype declaration so the validator assumes html4
      >transitional
      >
      >I am not able to achieve what i want: to close the window when the user
      >switches to different window
      >
      >any ideas?[/color]

      Yes. If I get a message popping up to say that an email has arrived, my
      firewall tells me an application is asking permission to do something or
      Windows wishes to apprise me of the fact that it has heroically
      recovered from yet another serious error of its own making, then it's
      highly unlikely that I want any of my browser windows to close. You
      should ask yourself whether your readers will be so very different.

      --
      Stephen Poley


      Comment

      • Andy Dingley

        #4
        Re: dhtml question: onfocusout event

        On 8 Nov 2005 22:53:04 -0800, bbass@hotmail.c om wrote:
        [color=blue]
        >onfocusout=win dow.close
        >
        >the w3 validator says there is no attribute "onfocusout "[/color]

        You're probably after "onblur", but this does sound a little trigger
        happy

        Comment

        Working...