WordPress.org

Forums

Print-O-Matic
[resolved] Print without window.open (2 posts)

  1. ivancandle
    Member
    Posted 1 year ago #

    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/

  2. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    File > Print
    Ctrl+P
    Javascript:

    <button onclick="myFunction()">Print this page</button>
    <script>
    function myFunction() {
        window.print();
    }
    </script>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Print-O-Matic
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.