I personally would advise Popups to manipulate Javascript windows. (due to popup blockers, Javascript errors, ...) Overlay would probably be better.
There will be another solution here.
There is only one file (the link should point to this helper, which opens the HTML video)
<html>
<body>
<script>
var windowWidth = 400;
var windowHeight = 200;
var xPos = (screen.width/2) - (windowWidth/2);
var yPos = (screen.height/2) - (windowHeight/2);
window.open("popup.html","POPUP","width="
+ windowWidth+",height="+windowHeight +",left="+xPos+",top="+yPos);
</script>
</body>
</html>
File two (video that closes the assistant)
<html>
<body onload="window.opener.close();">
</body>
</html>
source
share