setAttribute()

This method is used to set a tags' attribute values via scripting. Its values are set as follows:

attribute - This is the attribute you are modifying. value - This is the attribute value you are changing or setting caseSesitivity - This boolean value is TRUE or FALSE, and must exactly match the attribute string if set to TRUE.

syntax:

setAttribute (attribute, value[caseSensitivity])

This method is used to set properties of the following:

A
ACRONYM
ADDRESS
APPLET
AREA
B
BASE
BASEFONT
BGSOUND
BIG
BLOCKQUOTE
BODY
BR
BUTTON
CAPTION
CENTER
CITE
CODE
COL
COLGROUP
COMMENT
DD
DEL
DFN
DIR
DIV
DL
DT
EM
EMBED
FIELDSET
FONT
FORM
FRAME
FRAMESET
H1
H2
H3
H4
H5
H6
HEAD
HR
HTML
I
IFRAME
IMG
INS
KBD
LABEL LEGEND
LI
LINK
LISTING
MAP
MARQUEE
MENU
META
OBJECT
OL
OPTION
P
PLAINTEXT
PRE
Q
S
SAMP
SCRIPT
SELECT
SMALL
SPAN
STRIKE
STRONG
STYLE
SUB
SUP
TABLE
TBODY
TD
TEXTAREA
TFOOT
TH
THEAD
TITLE
TR
TT
U
UL
VAR
XMP
button
checkbox
fileUpload
hidden
password
radio
reset
style
submit
text