getElementsByName and Div tags
I just discovered that you cannot find div tags (ed. more specifically DIV tags by name) using the getElementsByName() method of the DOM.
This is a pity as it makes it trickier to do simple styling without iterating through the entire collection of DIV elements on the page and checking the name attribute.
You can use ID of course, but in ASP.NET when you set the DIV element to runat="server", and especially when they are in controls, the ID value varies.
Anyone know of a method that does this for ALL elements?
More info here.
vtgo.net