Another method I've imagined but never implemented is for each added
function to add itself to an array of functions.
...
It's efficient. Your imagination is should try it.
Er, "Your imagination is on the right track; you should try it."
My imagination, apparently, completes sentences that my f
Also, while it's convenient to insert javascript event handlers into
HTML
markup when demonstrating an example, in practice it's probably best
to
leave the script out of the markup and apply it from a separate
script file
at window.onload.
One beef I have with this code, and most code of this natu
At 02:39 PM 1/13/05, Ben Curtis wrote:
Also, while it's convenient to insert javascript event handlers into
HTML
markup when demonstrating an example, in practice it's probably best
to
leave the script out of the markup and apply it from a separate
script file
at window.onload.
One beef I have with
window.onload = externalLinks;
This is fine, if it's the only code you are assigning to onload, but it
overwrites any previous onloads and is overwritten by subsequent
onloads. ...
Another issue is that it works only after loading the whole page... I
use it in (testing setup of) a photogal
Also, while it's convenient to insert javascript event handlers into
HTML
markup when demonstrating an example, in practice it's probably best
to
leave the script out of the markup and apply it from a separate
script file
at window.onload.
I'm curious as to how you do that, because to my mind