位置:首页 > 编程专栏 > JavaScript

js 设置页面标题 title

js 设置页面标题 title
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script type="text/javascript">
        window.onload = function (){
            window.document.title = "新标题"; 
        };
    </script>
</head>
<body>

</body>
</html>

C# 社区推荐