OneCompiler

HERE

95
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <title>Skibidi</title> <style> button { background-color: black; color: white; border-radius: 20px; padding: 10px 20px; border: none; cursor: pointer; font-size: 16px; } </style> </head> <body> <h1 class="title">Game site</h1> <button onclick="openBlank()">0.1 GPA ACTIVITIES</button> <script> function openBlank() { const win = window.open('about:blank', '_blank'); if (win) { win.document.write(` <!DOCTYPE html> <html> <head> <title>Enter URL</title> </head> <body> <input type="text" id="urlInput" placeholder="Enter URL here" /> <button onclick="openIframe()">Go</button> <script> function openIframe() { const url = document.getElementById('urlInput').value; if (url) { const fullUrl = url.startsWith('http://') || url.startsWith('https://') ? url : 'https://' + url; const iframeWin = window.open('about:blank', '_blank'); if (iframeWin) { iframeWin.document.write(\` <!DOCTYPE html> <html> <head><title>Website Viewer</title></head> <body style="margin:0"> <iframe src="\${fullUrl}" style="width:100vw;height:100vh;border:none;"></iframe> </body> </html> \`); iframeWin.document.close(); } } } <\/script> </body> </html> `); win.document.close(); } } </script> </body> </html>