Forum Discussion
LisaOgan
6 years agoCommunity Member
Need Javascript Help with Printing a Page (fixed height/width)
Hi there. I need to print a page in a SL 360 course (not a certificate). I found some javascript which has worked great, but there is one issue. The formatting/size of the printed page differs depen...
DaveCox
5 years agoCommunity Member
Hi Kasa,
You can't use the %variable% to print the variable on the HTML page. You have to pass then variable to a new variable on the page using var player = parent.GetPlayer(); and var SLvariablename = player.GetVar("variablename");
then you can print put the contents of your variable into your list element by using:
<script>
document.getElementById("GoodTextEntry").innerHTML = SLvariablename
<script>
Dave
Related Content
- 4 months ago