[Javascript] proper use of 'void' and WCAG/Section 508 ? [CLOSED]
Stone, Timothy
tstone at cityofhbg.com
Fri May 2 10:52:18 CDT 2003
... snip ...
>> Can I call onclick in onkeypress
> onkeypress="whatever" where whatever is a legal JavaScript. If you use
> "return false;" you cancel the event, if you do nothing or
> return true,
> it fires. You can also use "return this.onclick();" if you wish to
> connect it to the onclick handler.
>
... snip ...
liorean,
Thanks for the quick response and details. It looks to me that the best answer to the question is to state:
... onkeypress="return this.onclick();" ...
the simplicity of the solution escaped me. It meets the WCAG guidelines precisely.
Thanks again!
Tim
More information about the Javascript
mailing list