Title: Print without window.open
Last modified: August 21, 2016

---

# Print without window.open

 *  Resolved [ivancandle](https://wordpress.org/support/users/ivancandle/)
 * (@ivancandle)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/print-without-windowopen/)
 * Hi, great plugin!
    I need to allow user to Print page without window.open or 
   _blank page? Allowing users to Print directly from the page they are viewing.
   How can I do that?
 * Thanks!
 * [https://wordpress.org/plugins/print-o-matic/](https://wordpress.org/plugins/print-o-matic/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [12 years ago](https://wordpress.org/support/topic/print-without-windowopen/#post-4893110)
 * File > Print
    Ctrl+P Javascript:
 *     ```
       <button onclick="myFunction()">Print this page</button>
       <script>
       function myFunction() {
           window.print();
       }
       </script>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Print without window.open’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/print-o-matic_b2b2b2.svg)
 * [Print-O-Matic](https://wordpress.org/plugins/print-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/print-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/print-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/print-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/print-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/print-o-matic/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Baden](https://wordpress.org/support/users/baden03/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/print-without-windowopen/#post-4893110)
 * Status: resolved