Print just by clicking on page button

Asked

Viewed 420 times

0

There is a way to put the page content to print only by the cryo button on the page?

I have the function in JS

function cont(){
    window.print();
}

HTML

<button onClick="cont();">click</button>

Is there a way to print already when you click the? button without opening that dialog of the Chrome browser showing things to print.

If possible in js.

  • You mean direct print to the standard printer?

  • Or these answers may help [ https://stackoverflow.com/questions/27633386/how-to-skip-browser-default-print-preview-and-print-content-directly-to-printer ]

  • Direct print to the standard printer by clicking the button. Ex.: clicked the button, printed

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.