How to access parent window elements with id from popup window in same domain

Can anybody suggest how to access parent window elements with id from popup window in same domain using webix

If popup a webix popup or native browser popup ?
In second case you can use window.opener

Hello,

What could be the solution, if this is an webix pop,can you please respond this.

Yes Maksim, the query is regarding webix popup only

Sorry, I’m still not sure about full context, but assuming that you have popup and an iframe with child page in it - you can run the next code in the child page

var parent = parent.webix;
for (var key in parent.ui.views){
    var some = parent.$$(key);
    if (some.name == "window" && some.isVisible()){
            //do something with window
            some.hide();
    }
}

This doesn’t locate the window related to the current frame, but the first visible window only.

If there is no iframe involved, you can use getParentView method to locate the parent window view.

Thanks a lot maksim