In your code, you did not show anything which should trigger execution of your script. The solution is simple: you should have some script placed as a child of the element "body" or your "html" element. Another approach is adding the attribute
onload
to the
<body>
element (see, for example
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body[
^]). As you did not show your HTML content of your created window, I am not sure if you tried to do so, most likely not.
—SA