Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 426
نمايش فراداده

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.