Team LiB   Previous Section   Next Section
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.

    Team LiB   Previous Section   Next Section