Like on one page when you press the print button to start up another page for printing?

Good day! You can tell whether being on the same page to start up the printer another? Thanks in advance for your answers!
June 10th 19 at 16:53
1 answer
June 10th 19 at 16:55
In order to avoid problems with different browser security settings, it is best to add to url hash-style #print on the page itself to check for and call window.print();
if(location.hash == 'print'){

Find more questions by tags PrintLayoutJavaScript