yqm的.net之园

writing down what i am experiencing or creating
javascript取得当前页面的url路径
<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>

这么多,其中target.location.href 可以获得当前browser中(框架结构)某个框架的url。

posted on 2006-11-25 14:30  YQM  阅读(2483)  评论(0编辑  收藏  举报