Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Help with closures


  • From: david at dorward.me.uk (David Dorward)
  • Subject: [Javascript] Help with closures
  • Date: Fri Jan 12 04:48:11 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