textAlign

This property is used to set or change the horizontal alignment of text within the document or within the boundaries of the given element. Valid values are:

center
left
right

syntax:

document.all.elementID.style.textAlign = "CENTER, LEFT, or RIGHT"

This Property is used to access attributes of the following:

style
tags