Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: open
I learned js from an o'reilly book called "Dynamic HTML" and pretty much just from doing it.
<added>sorry, I just reread that, you can't have 2 seperate events but you can call multiple functions in the onLoad event.
The one above is even written conditionally through php. ;)
LOL, that could very well be. The last time I tested it my markup wasn't exactly up to par (I don't even think I knew about the validator service then). But even so, the stop button still went gray, so I'm not sure that was it.
I might have also been thinking of strapping the handler in the JS itself, like
, which doesn't seem work in IE at all.
document.body.onload = loaded();
But in any case, I was mistaken about the onload attribute of the body tag, I just tested it a number of times and it has worked every time. :)