as I am new to Javascript you guys might save me some time answering this simple question.
How to make Javascript functionality that prints linked document(not the current window).
Lets say that www.example.com/print/index.html contains button that I want to print www.example.com/print/example.html content.
Solution I have found so far opens 2 new windows(content itself & print preview) and that hurts me, as I want print preview only
window.open('www.example.com/print/example.html').print();
Thank you
There is no solution that you can print page2 by putting print button on page1 here are some solution that might help you to achieve your task easily : How to print a web page without opening a popup window?