[Javascript] Help with closures
David Dorward
david at dorward.me.uk
Fri Jan 12 04:48:00 CST 2007
On Fri, Jan 12, 2007 at 10:33:48AM -0000, Alex Turner wrote:
> I would place call onclick like this:
> <span class="click" onclick='toggleMe(this)'>Hide this content</span>
I wouldn't. It displays "Hide this content" even when the JavaScript
won't work, and isn't in the tab order so its inaccessible to users of
non-pointing devices.
Instead, I would use JavaScript to dynamically add a button or anchor
to the document.
--
David Dorward http://dorward.me.uk
More information about the Javascript
mailing list