Javascript Reference - HTML DOM Style pageBreakInside Property








The pageBreakInside property sets or gets the page-break behavior inside an element for printing or print preview.

Browser Support

pageBreakInside Yes Yes Yes Yes Yes

Syntax

Return the pageBreakInside property:

var v = object.style.pageBreakInside;

Set the pageBreakInside property:

object.style.pageBreakInside='auto|avoid|initial|inherit'

Property Values

Value Description
auto Insert a page break inside the element if necessary. This is default
avoid Do not insert a page break inside an element
initial Set to default value
inherit Inherit from parent element.




Technical Details

Default Value: auto 
Return Value: A string representing the page-break behavior inside an element when printing
CSS Version CSS2