View Full Version : Moz dynamic attributes
03-17-2004, 10:44 PM
in IE I can do this:
why can't I do that in moz/firefox?
03-18-2004, 12:08 AM
Because IE doesn't follow the standard!
The correct way to do this (and this should be in the DOM forum) is as follows:
At least I'm pretty sure that's the way...
For more information on this kind of stuff, refer to my favourite API:
Hope that helps,
03-18-2004, 04:13 AM
Originally posted by Garadon
getElementsByTagName is a collection - you have to specify the element's index in the collection. Better also to search in lower case:
03-18-2004, 12:09 PM
sad69: Why do it more complicated than necessary?
03-18-2004, 06:30 PM
Because I didn't know about that one! I don't think I've really ever looked at the Element class before...
Good call though, I'll use that from now on!
03-18-2004, 07:31 PM
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.