JavaScript Print Div Content with Style Sheet using Window.print Function

Window.print function is used to print the page or div content, you can continue print function by keeping the style. The page content or Div content is styled using CSS style sheet. You can print the page by keeping the style sheet.

The following code gives the demo how to print the page or particular div content in JavaScript by keeping the CSS as it is.

Code to Window.Print () Function with styled