<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>window.open</title>
<script type="text/javascript">
  function a(){var b=confirm("你是否要进入斗鱼")
  if(b==true){
    var c=prompt("请输入斗鱼地址")
    if(c!=null){
    a=window.open(c,'_blank','width=3000,height=2000,menubar=yes,toolbar=yes, status=yes,scrollbars=yes');
    }
             }
  
              }
            
   function wopen(){dd=window.open("https://hao.360.cn/?safe")}
   function Wclose(){
   
     a.close() 
   }
  </script>
  </head>
<body>
    <input name="button" type="button" onClick="a()" value="点击输入你想浏览的网页" / >
    <input name="button" type="button" onClick="Wclose()" value="点击关闭网页" / >
    <p
  </script>
      
  </body>
</html>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2021-08-17
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-20
  • 2021-12-31
  • 2021-11-23
  • 2022-12-23
  • 2021-11-14
  • 2021-12-31
  • 2021-09-02
相关资源
相似解决方案