Access popup using Javascript?

Access popup using Javascript?

  

Hello,

I dragged a "popup" control to the HomeScreen and named it "puTest". How can I access it using Javascript? If I drag a container control and name it "cnTest" I can access it.

var eControl = document.getElementById('cnTest');
var ePopup = document.getElementById('puTest');
alert(eControl);  // shows object
alert(ePopup);  // shows null

Thanks,
Bobby

Hi Bobby,

The popup is inside an iframe.

Check this to know how to access an element inside an iframe:

https://stackoverflow.com/questions/1088544/get-element-from-within-an-iframe

Cheers,

José