//获取当前文件全路径<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);</script>
//获取当前目录方法
<script type="text/javascript">//方法一
var str = location.href;
var arr = str.split("/");
delete...