[thelist] Another basic JavaScript question
john at johnallsopp.co.uk
john at johnallsopp.co.uk
Sat Oct 18 11:13:39 CDT 2003
> Uh, well -- right off I'd say having both a function and an array
> within that function with the *same name* is A Bad Thing... :-)
Yers, I didn't intend to leave it like that, I'm just demonstrating to
myself that what I want to do is possible. Like I say, I'm brain dead
today.
> And it should be `document.getElementById(myElement).`
Thanks, that works a treat. I'm not sure why it works without the document
prefix in the main body tho. I guess maybe because it's in the main body
'document' is assumed.
Thanks very much for your help :-)
J
More information about the thelist
mailing list