Javascript Reference
Categories: STYLE

javascript STYLE textOverflow

@March 15, 2008, 1:22 a.m.
textOverflowFirefox/Netscape/NN n/a IE 6(Win) Chrome/Safari/DOM n/a  

Read/Write  

Controls whether text content that overflows a fixed box should display an ellipsis (...) at the end of the line to indicate more text is available. The element should also have its overflow style attribute or property set to hidden.

 
Example
 
document.getElementById("textBox").style.textOverflow = "ellipsis";
 
Value

One of the allowable constant string value: clip | ellipsis.

 
Default

clip


Powered by Linode.