iframes are annoying and complicated, so this is better :P
youtube = "https://youtube.com/".newIframe()
youtube.iframeShow()
youtube.iframeCreate()
// adds the iframe to the window
mainloop:
youtube.iframeSize(window_width,window_height - 40)
// resizes the iframe to the window
goto 0 -20
youtube.iframeUpdate()
// calls to update the iframe at the xy of the draw cursor
if "up arrow".onpress (
youtube.iframeRedirect("https://studio.youtube.com")
)
if "space".onpress (
youtube.iframeClose()
)
iframes are annoying and complicated, so this is better :P