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