JavaScript 参考手册
Location href 属性
返回完整的URL(当前页)
源代码:
点击运行 »
<script> document.write(location.href); </script>
1
<
script
>
2
document
.
write
(
location
.
href
);
3
</
script
>
运行结果:
点击运行 »