javascript取得当前页面的url路径
 <script language="javascript">
<script language="javascript">    alert(window.location.href);
  alert(window.location.href);    alert(window.location);
  alert(window.location);    alert(location.href);
  alert(location.href);    alert(parent.location.href);
  alert(parent.location.href);    alert(top.location.href);
  alert(top.location.href);    alert(document.location.href);
  alert(document.location.href);  alert(document.URL);
  alert(document.URL); </script>
</script>这么多,其中target.location.href 可以获得当前browser中(框架结构)某个框架的url。
 
                    
                 
         
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号