| <!DOCTYPE html> |
| <script> |
| function getQueryParam(name) { |
| const urlParams = new URLSearchParams(window.location.search); |
| const value = urlParams.get(name); |
| if (value == null) |
| return ''; |
| return value; |
| } |
| |
| window.onload = function() { |
| const iframe = document.getElementById('frame1'); |
| iframe.src = getQueryParam('domain') + 'open_popup.html'; |
| }; |
| </script> |
| <style> |
| body { |
| margin: 0; |
| } |
| iframe { |
| border: unset; |
| position: relative; |
| top: 100px; |
| left: 100px; |
| width: 200px; |
| height: 300px; |
| } |
| </style> |
| <body> |
| <iframe src="" id="frame1"></iframe> |
| </body> |