W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2000

Re: Seeking guidance...

From: Christopher Atkinson <cwa@pipeline.com>
Date: Thu, 6 Apr 2000 23:00:39 -0400
To: <w3c-wai-ig@w3.org>
Message-ID: <LOBBLEOECJNLOHKCNBKAKEKNCAAA.cwa@pipeline.com>
Dear Steven:

If IE Mac 5 displays the behavior you describe, it would be a bug. According
to Microsoft's SDK for IE 5, onfocus and onblur are available on IE Mac as
of IE Mac 4. As far as I can tell from my experiments on IE 5 PC and
Microsoft's documentation, as long as the DIV has its TABINDEX set, you
should be able to use onfocus and onblur.

The following works as expected in IE PC 5:

<HTML>
  <HEAD>
	 <TITLE>onFocus Experiment</TITLE>
  </HEAD>
  <BODY>
  <P>Experiment to determine availability of "onFocus" event handler</P>
<DIV ID="DivOne" ONFOCUS="this.innerText='Div One gained focus'"
ONBLUR="this.innerText='Div One lost focus'" TABINDEX=1>I am DIV One. On
focus my text will change to tell you I have focus. On loss of focus my text
will change to tell you that I have lost focus. But you will never see this
text again.</DIV>
<DIV ID="DivTwo" TABINDEX=2>I am DIV Two. I do nothing on focus.</DIV>
<DIV ID="DivThree" ONFOCUS="alert('Hello, World.')" ONBLUR="alert('Goodbye,
World')" TABINDEX=3>I am DIV Three. On focus, I will display a "Hello World"
alert. On loss of focus , I will display a "Goodbye World" alert. My text
will remain unchanged.</DIV>
 </BODY>
</HTML>

Since I do not know anything about how screenreaders or other assistive
technologies work, I have prepared two DIVs, one with text change and one
with alert in the hopes that one of the approaches will work. The text in
the particular DIV describes the intended effect. If there is some other
effect that is needed to test this against any particular technology, tell
me and I will add another DIV.

If you would like to try this online rather than cutting and pasting, please
go to http://www.pipeline.com/~cwa/onFocusExperiment.html.

Regards,
Received on Thursday, 6 April 2000 23:07:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:13:48 GMT