Using JavaScript, how do I create a print all button?
The 'Print All' button whenever clicked would iterate through an iFrame's different src's and print the content.
As a note, the iFrame is currently setup on a main webpage. There are navigation buttons to change the content src of the iFrame. This main webpage is set up to resemble navigating through slide content with navigation buttons. The navigation buttons are really navigating to different webpages.
So, I'm guessing that the content would need to be appended to a document or arrayed so that the content could then be printed all at once with the 'Print All' button.
I was successful at printing a 'Current Slide' (or iFrame content) with the following code:
function PrintCurrentSlide()
{
var el = document.getElementById('ifMain');
el.contentWindow.focus();
el.contentWindow.print();
return;
}
Now, I'm searching for an answer to navigate through the iFrame src's to print content with just one click.