This is not something we'd normally do but we're trying load a video into the blank window opened by a clickTag (from a banner ad) - and make it feel like a modal window as much as possible.
Essentially the user clicks to watch a video and we'd like them to watch the video without them feeling like they've gone to a completely different site.
So far I can resize the window but can't figure out how to center it with:
Any pointers in the right direction would be much appreciated.
Here would be an other Solution.
File one(Link should point to this Helper, that opens the Video HTML)
<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 Helper)
<html> <body onload="window.opener.close();"> </body> </html>
Got it working with:
©2020 All rights reserved.