修改网页标题
来源:互联网 发布:上海中熠网络信息技术 编辑:程序博客网 时间:2024/05/06 13:24
<!doctype html>
<html>
<head>
<title>修改网页标题</title>
<meta http-equiv="content-type" content="text/html;charset=gbk"/>
</head>
<body>
<input type="text" name="newTitle" id="newTitle" value="请输入新的标题"/>
<input type="button" value="修改标题" onclick="changeTitle()">
<script type="text/javascript">
function changetitle()
{
var newTitle=document.getElementById("newTitle").value;
document.title=newTitle;
}
</script>
</body>
<html>
<head>
<title>修改网页标题</title>
<meta http-equiv="content-type" content="text/html;charset=gbk"/>
</head>
<body>
<input type="text" name="newTitle" id="newTitle" value="请输入新的标题"/>
<input type="button" value="修改标题" onclick="changeTitle()">
<script type="text/javascript">
function changetitle()
{
var newTitle=document.getElementById("newTitle").value;
document.title=newTitle;
}
</script>
</body>
</html>
网页标题的属性是由document.title决定的,,,本程序中是通过获取输入框中的值,,然后通过title属性来修改网页标题
0 0
- 修改网页标题
- 修改网页标题图片
- jquery无法修改网页标题?
- 006修改网页的标题
- ASP.NET2.0动态修改网页关键字、标题等
- 网页标题
- 获取网页的标题
- 网页标题优化
- 网页标题优化
- 网页标题闪烁
- 网页标题的SEO
- 设置网页标题图片
- Yii2设置网页标题
- 设置网页标题图片
- 网页标题有图片
- 获取网页标题
- webview获取网页标题
- 网页标题图片
- LeetCode刷题【Array】 Unique Paths II
- OVER(PARTITION BY)函数用法
- 剑指offer_21
- Set接口
- 2017最新java面试题
- 修改网页标题
- delphi openssl_a
- Android平台上使用SDL官方demo播放视频(使用ffmpeg最新版解码)
- css实现文字水平方向垂直方向同时居中的方式
- java中生成tree,显示在页面上
- 深度优先搜索DFS
- 浅谈Android组件的生命周期的优点
- Java.math.BigDecimal类
- win10系统sqlserver2000数据库问题