On 8 Nov 2005 22:53:04 -0800,
bb***@hotmail.com wrote:
below is the snippet of the code:
<a href="merc.htm" target="_new_merc" onfocusout=window.close
class="left_link">
I have an event inside the <a> tag
onfocusout=window.close
the w3 validator says there is no attribute "onfocusout"
That's because there isn't. Checking the spec is a lot quicker than
asking here:
http://www.w3.org/TR/REC-html40/inte....html#h-18.2.3
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?
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
http://www.xs4all.nl/~sbpoley/webmatters/