js javascript 打开一个网页

创建日期: 2024-02-05 19:41 | 作者: 风波 | 浏览次数: 12 | 分类: 前端
<!DOCTYPE html>
<html>
  <head>
    <title>Educative</title>
  </head>
  <body>
    <button onclick="openTab()">Educative</button>

  <script>
    function openTab() {
       window.open("https://www.educative.io/", "_blank");
    }
  </script>

  </body>
</html>
12 浏览
0 评论