Forum Discussion
OwenHolt
11 years agoSuper Hero
Create a Course Certificate in StoryLine! (with Java and HTML)
I noticed in Stephanie Harnett's most excellent post on user notes that can be printed or emailed that much of the java for the printing function was really just filling the print window with conte...
MattLynch
9 years agoCommunity Member
Adding contents+='window.print();' just before the contents+='</body></html>' line does not seem to print in any browser. Maybe adding a print button in the html would be another option? I would like it to print automatically though.
- OGIckebins8 years agoCommunity Member
//Thats work:
myWindow.document.write(contents);
myWindow.document.close();
myWindow.focus();
setTimeout(function(){ myWindow.print(); }, 3000);
//myWindow.print();