x
. It has the following attributes:This page tests a few basic HTML DOM properties.
alert(x.className)
x.className = 'blue'
x.className = 'red'
alert(x.dir)
x.dir = 'rtl'
x.dir = 'ltr'
alert(x.id)
x.id = 'otherID'
x.id = 'test'
alert(x.title)
x.title = 'Changed'
x.title = 'Test title'