JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Window › windowParent is empty
Tagged: window parent
I crete a popup window with
var window = document.createElement(“smart-dialog-window”);
and I append it to the current document.
On that window I put a button, when I click it I pass the window to a function.
In that function I try to get the parent window with window.windowParent but is null (window is not null)
Why ?
How can I get the parent window and operate on it ?
Tks
Hi,
windowParent is null by default unless you set it to something like “container1” where container1 is ID of a container element.
Regards, Markov
Smart UI Team https://www.htmlelements.com/