Forum Discussion
OwenHolt
12 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...
SteveFlowers
10 years agoCommunity Member
OK. Looks like Chrome fires off the window print too soon. What does the script look like? Depending on the construction, you could add the window print to the launched page and fire it after the page has been written.
contents+='<scr'+'ipt>'
contents+='window.print();'
contents+='</scr'+'ipt>'
contents+='</body></html>'
myWindow.document.write(contents);
myWindow.document.close();
myWindow.focus();
//myWindow.print(); comment this line
Related Content
- 9 months ago
- 2 months ago