Forum Discussion
Jürgen_Schoene_
3 months agoCommunity Member
if the LMS and the course in the iFrame are in the same domain*, it's easy
javascript trigger in Storyline
const player = GetPlayer();
const completed = player.GetVar("isStorylineCompleted");
if(parent && parent.setCourseState){
parent.setCourseState( completed );
}
javascript in the outer html
<script>
function setCourseState( inState ){
alert( "course state: " + inState );
}
</script>
* if not use postMessage