// 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+='This is to certify that
'+username+'
has completed phase one of the TRI-MAX 30 course on
'+currentDate+'