HTMLElement.setAttribute( ) |
set the value of an attribute |
Availability
Internet Explorer 4, Netscape 6
Synopsis
element.setAttribute(name, value)
Arguments
- name
-
The name of the attribute to set.
- value
-
The value to set it to.
Description
setAttribute( ) sets the attribute
name of element
to value.
|