style.wordSpacing (Property)

Controls the spacing between words on the page.


CSS level - 1
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.01
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.wordSpacing
CSS syntax:word-spacing: aSwitch
Argument list:aSwitchA control value for word spacing

When the textAlign attribute is set to the justify keyword, this spacing may come into play.

A length value in measurement units can be specified to adjust the spacing between words or the normal keyword can be assigned to let the browser calculate spacing on its own.


See also:Measurement units, style.textAlign