Login / create account
Search:
Sub-categories
(None)
Main
>
Technology
>
Computers
>
Programming
>
Javascript
>
Cross-browser compatibility
Add tip
Category
|
Discussion (0)
Cross-browser compatibility
Main
>
Technology
>
Computers
>
Programming
>
Javascript
>
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 16 users online :: 0 registered and 16 guests (based on users active over the past 5 minutes)