Tips-A2Z home page


Sub-categories

(None)

All  |   Discussion (0)Cross-browser compatibility

When setting an attribute of an html element (e.g. one created using document.createElement()) do not use the syntax:
element.attribute = value;
because it fails on some browsers, notably Konqueror as of 21/04/2007. Instead use the syntax:
element.setAttribute(attribute, value);   Laird Shaw (4)

– –– ——— –– –


 


 

To post a new tip, sign up for a free account.
(Unfortunately this is a necessary spam prevention measure)

Who is online
In total there are 2 users online :: 0 registered and 2 guests (based on users active over the past 5 minutes)