利用JavaScript获取当前路径

<script LANGUAGE=JSCRIPT>
var url=unescape(window.location.href).replace( "file:///","");
alert(url.substring(0,url.lastIndexOf("/")));
</script>

你可能感兴趣的:(利用JavaScript获取当前路径)