怎样在HTML下取浏览器地址(用JavaScript 别的也行) parent.location.hreforparent.location.href.replace(/^.*\/([^\/]+)$/,"$1"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 saucer(思归, MS .NET MVP) 2003-01-30 10:39:00 不太好用啊 <script>alert(this.location.href)</script> wocsdn(5636) 2003-01-30 17:27:00 还是不好用啊我用的是document.write也不好用单独页面好用在frame里就不好用了 index.html:<frameset cols="0,*" frameborder="NO" border="0" framespacing="0"> <frame scrolling="NO" noresize> <frame src="b.html"></frameset>b.html:<script>alert(parent.location.href);alert(parent.location.href.replace(/^.*\/([^\/]+)$/,"$1"));</script> saucer(思归, MS .NET MVP) 2003-01-30 23:10:00 还是不好用啊?你可以去看看父页 http://www.7st.net/子页 http://jokulE.y365.com/index.html it is security issues, the browser does not allow you access pages from another domain 哪位有java的数结构,可否给发一下 (高分求助)dhATV(Ajax TreeView)跨frame灯箱效果怎么做? 找特效 把页面的表格数据保存为本地的Excel文件或word文档 这句话什么意思!谁帮我每行解释下 问一个应该不是很难的问题。 javascript调用记事本打开文件出错 在Firefox中,代码无法实现功能,如何修改?? 怎样定时弹出窗口啊?怎么我用的都不行? echarts怎么把y轴的上下都设置成正数??? 如何判断一个OCX下载完毕?! 急!范围内随机数组的问题!求教高手!!!!!
不太好用啊
<script>
alert(this.location.href)
</script>
单独页面好用
在frame里就不好用了
<frameset cols="0,*" frameborder="NO" border="0" framespacing="0">
<frame scrolling="NO" noresize>
<frame src="b.html">
</frameset>
b.html:
<script>
alert(parent.location.href);
alert(parent.location.href.replace(/^.*\/([^\/]+)$/,"$1"));
</script>
你可以去看看
父页 http://www.7st.net/
子页 http://jokulE.y365.com/index.html