« Blog Home

§ Adding events to elements

For most elements, you can just do element.onclick = function_name.  But read on...

(Much better article available at Add and Remove Elements with JavaScript (reprise) from Dustin Diaz.)

Read More ...

§ window.onload via double delegate function

This is the way I add javascript functions to the window.onload event.  As far as I've seen, you can load endless functions this way.

Lifted straight from Robert Hahn's blog:  http://blog.roberthahn.ca/articles/2007/02/02/how-to-use-window-onload-the-right-way

Thank you!  Bless you!  What a headache.

Read More ...

« Blog Home


“History, dear,” said Jerry.  “That stuff you disapprove of, where most problems had to get solved before, and we don’t learn anything from.”
Jerry, Pyramid Power, Eric Flint & Dave Freer