---
title: "Discussion on \"A recipe to implement print functionality efficiently in Javascript\" | Hashnode"
description: "Discussion on \"A recipe to implement print functionality efficiently in Javascript\". Javascript provides the method window.print() to print the entire contents of a html page.\nThere are two problems with this approach:\nYou cannot print part of your HTML page.\nIf you have a print button to print the page , even the button shows up in ..."
url: "https://hashnode.com/posts/a-recipe-to-implement-print-functionality-efficiently-in-javascript/5fc787c36819c54efdf2dd55"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A recipe to implement print functionality efficiently in Javascript](https://vijaysrj.hashnode.dev/a-recipe-to-implement-print-functionality-efficiently-in-javascript?utm_source=hashnode&utm_medium=feed)

Javascript provides the method window.print() to print the entire contents of a html page. There are two problems with this approach: You cannot print part of your HTML page. If you have a print button to print the page , even the button shows up in ...

Dec 2, 2020 · 2 min read · vijaysrj.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#html](https://hashnode.com/tag/html)

## Written by

[vijay srj](https://hashnode.com/@vijaysrj)

@vijaysrj

  
[View profile](https://hashnode.com/@vijaysrj)

Climbing up the mountain of full stack development one stone at a time

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
