I want to have a button “Print all reports” which will print 5 different URLs at once. Is there a way to do it without making it redirect you to a new page I will have to create with all the code again for each of the URLs and window.print() it?
Share
I think the way you have exposed is good from every angle. Have a different page which prints all code of 5 URLs and call
window.print()function to open the print-dialog.If not, you will have to use ajax to fetch the output of all 5 different URL’s and dump it on the same page where the user clicked the button. But, I would oppose this approach since it loses the ability to go back to the page and user could be deceived if they bookmark it.