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] Stopping default action


  • From: sclay at ufl.edu (Steve Clay)
  • Subject: [Javascript] Stopping default action
  • Date: Fri Mar 31 10:13:03 2006

Friday, March 31, 2006, 10:56:14 AM, Bill Moseley wrote:
> Now, since I'm trying to get rid of the in-line onclick on my <a>
> elements

Perhaps I missed too much of this thread, but why bother? Unless you need
advanced features of something like Event.Observe I see nothing wrong with
including event handlers right in the markup since it will only be used by
the browser's native parser.

If you must bother, you probably just need to setTimeout a few ms to
wait until the markup has been parsed into the document before attaching
the events.

Steve
-- 
http://mrclay.org/