WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ivancandle
    Member
    Posted 2 months 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 month ago #

    File > Print
    Ctrl+P
    Javascript:

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.