0 Replies Latest reply on Jul 23, 2015 5:41 AM by EnthusiastOfTheMind

    How do I detect when an element is clicked within an iFrame?


      I've loaded html doc into an iframe using a container in Edge, and I want something to happen when I click on an element <p> within the loaded iFrame.

      But its not working ... Can anyone help?


      //iFrame loads successfully into container

      sym.$("container").html("<iframe id='Mycontainer3' width='100%' height='100%' style='margin:0;padding:0;border:0;' src='terms.html'></iframe>");


      //I want to do something when <p> element is clicked within the loaded iFrame- but my syntax must be wrong


                var comp = sym.getComposition().getStage();