Change variable from iframe button

Q&A about the latest versions
Post Reply
jessepschultz
Posts: 3
Joined: Thu Jul 21, 2022 4:56 pm

Hello,
I have a tour (v6) that opens content windows with iframes. In the iframe content are buttons that I'd like to control the skin. Here's what I have but the variable won't get updated. Using same domain so no cross traffic issues...any thoughts would be most helpful

Code: Select all

<script>
function myFunction() {
  //alert("I am an alert box!");
  parent.pano.setVariableValue('program_content', false);
};
</script>

<div class="action-button" onclick="myFunction()">See my lab in action</div>

Post Reply