首页 > 网站 > WEB开发 > 正文

在页面中显示当前网页的title栏信息及路径地址

2024-04-27 13:57:49
字体:
来源:转载
供稿:网友
<!-- 把下面代码加到<body>区域中 -->
<script language="javaScript">
<!--
document.write('<font color=red>此网页的主题为:</font>')
document.write(document.title+'<br><font color=red>此网页的路径为:</font>'+document.URL)
//-->
</script>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表