Javascript Reference
Categories: STYLE

javascript STYLE orphans, widows

@March 15, 2008, 1:22 a.m.
orphans, widowsFirefox/Netscape/NN 6 IE 5(Mac) Chrome/Safari/DOM 2  

Read/Write  

For a block-level element's content that spreads across page boxes, specify the minimum number of lines of the element that must appear at the bottom of the page (orphans) or at the top of the next page (widows). Although these properties are members of the style object in IE 5/Mac and Netscape 6, neither the style attribute nor scripted changes to it affect the printed output.

 
Example
 
document.getElementById("sec23").style.orphans = "3";
 
Value

Integer as a string.

 
Default

None.


Powered by Linode.