how open browser?
in javascript:
document.body.innerHTML = <iframe style="height:100vh;width:100vw;border: 0px transparent;" src='https://wikipedia.com' allow='autoplay https://wikipedia.com'/>
how make it in python?
in javascript:
document.body.innerHTML = <iframe style="height:100vh;width:100vw;border: 0px transparent;" src='https://wikipedia.com' allow='autoplay https://wikipedia.com'/>
how make it in python?
here you go!
html_content = '''
<!DOCTYPE html>
<html lang="en">
<head>
<title>Iframe Example</title>
<style>
body, html {{
margin: 0;
height: 100vh;
overflow: hidden;
}}
</style>
</head>
<body>
<iframe src="https://wikipedia.com" style="height:100vh; width:100vw; border:0;" allow="autoplay https://wikipedia.com"></iframe>
</body>
</html>
'''
with open("iframe_example.html", "w") as f:
f.write(html_content)
:D