zoukankan      html  css  js  c++  java
  • js更改HTML样式

    <!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 id="js">
          heollo
      </p>
      <script type="text/javascript">
      var cs=document.getElementById("js");
      cs.style.color="red";
       cs.style.background="#00ffff"
      </script>
          
      </body>
    </html>

    红尘往事,一切随风!
  • 相关阅读:
    团队作业2
    团队作业2
    软件工程-团队作业1
    软件工程第一次作业
    自我介绍
    软件工程第一次作业
    Python3中采用PyInstaller打包工程项目
    mol2分子库文件拆分成单个mol2文件
    化学信息包安装
    单词读音音频源网址
  • 原文地址:https://www.cnblogs.com/xwenwu/p/13630023.html
Copyright © 2011-2022 走看看