我正在制作一个学校游戏解锁网站,并正在使用关于:空白斗篷.我需要在About:空白网站上添加一个标题,这样老师就不会看到我在上什么.
这是重定向的代码.
<html>
<head>
<body onclick="MyWindow1()">Click here to start</body>
</head>
<script>
(url);
var newWin = window.open
function MyWindow1(){
var win = window.open()
var iframe = win.document.createElement('iframe')
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.style.border = "none";
iframe.src = "./Main.html";
win.document.body.appendChild(iframe)
location.replace("https://www.google.com/")
}
</script>
</html>
这是main.html代码的样子.这是关于:空白网站.
<html>
<head>
<body onclick="MyWindow1()">Click here to start</body>
</head>
<script>
(url);
var newWin = window.open
function MyWindow1(){
var win = window.open()
var iframe = win.document.createElement('iframe')
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.style.border = "none";
iframe.src = "./Main.html";
win.document.body.appendChild(iframe)
location.replace("https://www.google.com/")
}
</script>
</html>
如果我只运行第二个文件,它不会执行关于:空白的操作,但会显示标题.谢谢!