View Full Version : Moz dynamic attributes
03-17-2004, 09:44 PM
in IE I can do this:
why can't I do that in moz/firefox?
03-17-2004, 11:08 PM
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, 03: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, 11:09 AM
sad69: Why do it more complicated than necessary?
03-18-2004, 05: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, 06:31 PM
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.