SOURCE

console 命令行工具 X clear

                    
>
console
document.getElementById("btn")
.addEventListener("click",function(){

 window.location.href="https://www.baidu.com";

});
document.getElementById("btn1")
.addEventListener("click",function(){

   var textboard = document.createElement("input");
   textboard.type="text";

   document.body.appendChild(textboard);


});

document.getElementById("aa")
.addEventListener("click",function(){

  var picture = document.createElement("input");
  picture.type="text";

  document.body.appendChild(picture);


});
<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<meta>
	<title>工具网站</title>
	<link rel="stylesheet" href="style.css">
</head>

<body>
	<div class="box1">
		<h1></h1>
	</div>
	<a href="www.bilibili.com">点这里</a>
	<button id="btn">点击跳转至百度</button><br/>
<button id="btn1">点击出现文本输入框</button>
<div class="box2">
<img id="aa" src="https://t7.baidu.com/it/u=1330338603,908538247&fm=193&f=GIF">
</div>

<script src="script.js"></script>
            </body>
            </html>
.box2{
    width:50px;
    height:50px;
}