javascript中的location对象属性及描述。

来源:互联网 发布:android使用数据库登录 编辑:程序博客网 时间:2024/05/24 07:41

location.[属性|方法]


<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>location</title> <script type="text/javascript">     document.write(location.href); </script></head><body></body></html>

输出打印:

www.xxxxxxxxx.com