// Open a print window myWindow = window.open('','Print','width=900,height=600,scrollbars=0,resizable=0'); // Get variables from StoryLine. Use the 2nd line below as a guide & add all the variables you will need. var player=GetPlayer(); var username=player.GetVar("UserName"); var currentDate=new Date(); // Create the contents. Use the 2nd line below as a guide & add all the HTML you will need. var contents = ''; contents+=''; contents+='
'; contents+='

Certificate of Course Completion

'; contents+='

This is to certify that

'; contents+='

'+username+'

'; contents+='

has completed phase one of the TRI-MAX 30 course on

'; contents+='

'+currentDate+'

'; contents+='
'; contents+='
John Smith
'; contents+='
T&D Manager
'; contents+='
'; contents+='

Safety Through Education

'; contents+='
'; contents+=' '; contents+=’'; // Write the contents to the window and execute the print command. myWindow.document.write(contents); myWindow.document.close(); myWindow.focus(); myWindow.print();