HTML DOM | Style pageBreakInside Property Last Updated : 05 Jun, 2022 Comments Improve Suggest changes Like Article Like Report The Style pageBreakInside property is used for setting or returning the page-break behavior inside an element in printing or print preview. The Style pageBreakInside property does not affect the absolutely positioned elements. Syntax : To get the property:object.style.pageBreakInsideTo set the property:object.style.pageBreakInside = "auto|avoid|initial|inherit" Note: Instead of this property use break-inside property because it is replaced with break-inside property Return Values: It returns a string value, which represents the page-break behavior inside an element when printing Property Values : auto: It is used to insert a page break inside the element if necessary.avoid : It is used to avoid a page break inside an element.initial : It is used to set this property to its default value.inherit : It is used to inherit this property from its parent element. Below program illustrates the Style pageBreakInside property : Example: Avoiding a page break inside the <p> element with id="footer" html <!DOCTYPE html> <html> <head> <title>Style pageBreakInside Property in HTML</title> <style> h1 { color: green; } h2 { font-family: Impact; } body { text-align: center; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>Style pageBreakInside Property</h2> <br> <p id="myfooter">Geeksforgeeks is a portal for geeks.</p> <p>For avoiding page break inside footer paragraph, double click the "Avoid Page Break" button: </p> <br> <button ondblclick="pagebreak()">Avoid Page Break</button> <script> function pagebreak() { document.getElementById("myfooter") .style.pageBreakInside = "avoid"; } </script> </body> </html> Output: Before Clicking the button: After clicking the button: Note: In order to see the output, please save the code in HTML file and run it on your browser. The output will be seen when you will see the PRINT PREVIEW of that file. Supported Browsers: The browser supported by HTML DOM | Style pageBreakInside Property are listed below: Google Chrome 1 and aboveEdge 12 and aboveInternet Explorer 8 and aboveFirefox 19 and aboveOpera 7 and aboveApple Safari 1.3 and above Comment More infoAdvertise with us S Shubrodeep Banerjee Follow Improve Article Tags : JavaScript HTML-DOM HTML-Property Similar Reads HTML | DOM Style wordBreak Property The DOM Style wordBreak Property is used to set or return the word-break property. The word-break property is used to specify how to break the word when the word is reached at the end of the line. The line breaks in the text can occur in a certain wordBreak property. Syntax: It is used to return the 2 min read HTML | DOM Style animationTimingFunction Property The Style animationTimingFunction property in HTML DOM defines the time of transition between the styles to make transitions smooth. It specifies the speed curve of an animation. Syntax: animation-timing-function: cubic-bezier(n1, n2, n3, n4)|linear |ease|ease-in|ease-out|initial|inherit; Return Val 4 min read HTML DOM Node isSupported() Method The isSupported() method in HTML DOM is used to check the specified feature is supported by the specified node or not. This method is not supported by many browsers. It returns true if the feature is supported else it returns false. Syntax: node.isSupported(feature, version) Note: This method has be 2 min read HTML DOM MouseEvent clientX Property The mouse event clientX property returns the horizontal coordinate (X-axis) of the mouse pointer in relation to the viewport when a mouse event occurs. It captures the mouse's position without considering any scroll offset.Syntax:event.clientXReturn Value: clientX returns the mouse pointer's X-coord 1 min read HTML | DOM Style borderImageWidth Property The Style borderImageWidth property in HTML DOM is used to set or return the width of the border image. Syntax: It returns the borderImageWidth propertyobject.style.borderImageWidthIt is used to set the borderImageWidth propertyobject.style.borderImageWidth = "number|percentage|auto| initial|inherit 5 min read HTML DOM Geolocation position Property The Geolocation position property in HTML DOM is used to return the position of a device on Earth. The returned Coordinates object could be used for various purposes including navigation and tracking the position of the device. Return Value: position.coords: The coordinates object that has all the i 2 min read HTML | DOM Style whiteSpace Property The Style whiteSpace property in HTML DOM is used to set the whitespace for text content. It returns the whitespace property that is given to the text. Syntax: It returns the whiteSpace property. object.style.whiteSpaceIt is used to set the whiteSpace property. object.style.whiteSpace = "normal|nowr 2 min read HTML | DOM Style fontStyle Property HTML DOM Style fontStyle Property is used to set or get font style of an element dynamically. Syntax: To set the fontStyle property :object.style.fontStyle = normal|italic|oblique|initial|inherit;To get fontStyle property value:object.style.height Property values: Valuenormalitalicobliqueinitialinhe 2 min read HTML DOM Style wordSpacing Property The Style wordSpacing property in HTML DOM is used to set or return the spacing between the words. It can also be used to specify space between words. Syntax: It returns the wordSpacing property. object.style.wordSpacing It is used to set the wordSpacing property. object.style.wordSpacing = "normal 2 min read HTML | DOM MouseEvent clientY Property The MouseEvent clientY property is a read-only property which is used to return the vertical coordinate of the mouse pointer based on the current window when a mouse event was triggered. Syntax : event.clientY Return Value: It returns a number that represents the vertical coordinate of the mouse poi 1 min read Like