Made Customised Certificate with Javascript but it is not show in Google Chrome

Hi Articulate team,

I am a newbie who just using Articulate story 360.

I try to make Customised Certificate file with Javascript the I found that IE, Firefox browsers are running well but it is not show anything on google chrome.

Could you please help me check my javascript code?

<SCRIPT> 

var player=window.opener.GetPlayer();

var learnerName=player.GetVar("learner");

//Content
document.write('<div class="bgimage"><img src="CertificateBG.gif"/></div>');
document.write('<div class="result">'+learnerName+', you have passed <b>The Quiz</b>!<br/><br/><em>For that feat, you deserve a break. Take 30 seconds. Then get back to work!</em></div>');
document.write('</div>');

//Send print request to browser if possible
window.onload = function() { window.print(); }
</SCRIPT>

Thank you everyone in advance.

Yupontee.

3 Replies