<script language="javascript">
alert(window.location.href)
alert(window.location)
alert(location.href)
alert(parent.location.href)
alert(top.location.href)
alert(document.location.href)
alert(document.URL)
alert(document.title)
</script>
1.在HTML文本中添加网页的链接采用以下语句:
<a herf="http://www.baidu.com">这是个百度的链接</a>
2.作为一个初学者,犯了一个很容易忽视的错误,就是在输入的地址的时候,没有输入“http://”,导致不能链接到这个网页。
3.“这是个百度的链接”是在网页上的蓝色的字体,只要点击这个字体就可以跳转到这端文字链接的地址。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)