Made Customised Certificate with Javascript but it is not show in Google Chrome
Jun 08, 2017
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
It looks like you are running locally. Chrome may be blocking and causing issues due to running locally. I'd try uploading to a server and re-testing.
Hi Yupontee! I think Erin's going in the right direction on that one. Have a look at this article for some best practices when publishing and testing/sharing your course.
Thank you Erin, You are right! it's been working in LMS.
Thank you Crystal too.
This discussion is closed. You can start a new discussion or contact Articulate Support.