126
Views
1
Comments
Access popup using Javascript?
Question

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

2020-03-05 14-29-02
José Costa

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é

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.