请问怎样获取框架内网页的网址?在线等 在第一个iframe中用如下js:addr = parent.getElementById('idOfIframe3').src; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我想这样<a href="http://www.xx.com/q?a="这里我想插入我问题所获取的网址 target="main">好像框架内是163.com,然后链接就直接访问http://www.xx.com/q?a=http://www.163.com/上面文章'这里我想插入我问题所获取的网址'这一段应该怎样写?框架内的网页不是固定的src,会随着按另一个框架链接而改变求解,有答案就结账啦 苦等....请问用js怎样获取之前一个页面的URL?准备结贴..急或者用PHP也可以 <a href="http://www.xx.com/q?a=http://www.163.com" target="main">http://www.xx.com/q?a=http://www.163.com </a><br><a href="http://www.xx.com/q?a=http://www.sina.com.cn" target="main">http://www.xx.com/q?a=http://www.sina.com.cn </a><br><a href="http://www.xx.com/q?a=http://www.baidu.com" target="main">http://www.xx.com/q?a=http://www.baidu.com </a><script>var links=document.all.tags("a")var total=links.lengthalert("一共有"+total+"个连接")for (i=0;i<total;i++){alert("第"+(i+1)+"个连接到\n"+links[i].href.replace("http://www.xx.com/q?a=", ""))}</script> FusionCharts js如何将excel生成的图表chart导出并显示在网页上 javascript开发win7工具--添加快捷方式代码 js动态修改表中的数据 问个简单的问题 PHP中如何获取javascript函数值 我对cookie一窍不通,但现在急用一个cookie,救命啊!!! js 基础问题,请高手指教小弟 万年历代码修改,只能前后翻一次,问题出在哪里,大家看看哦 求JS 高手帮忙改一个 密码找回的问题 怎样获取之前一个页面的URL? inrerHTML实现貌似AJAX的效果
好像框架内是163.com,然后链接就直接访问http://www.xx.com/q?a=http://www.163.com/上面文章'这里我想插入我问题所获取的网址'这一段应该怎样写?框架内的网页不是固定的src,会随着按另一个框架链接而改变求解,有答案就结账啦
<a href="http://www.xx.com/q?a=http://www.163.com" target="main">http://www.xx.com/q?a=http://www.163.com </a><br>
<a href="http://www.xx.com/q?a=http://www.sina.com.cn" target="main">http://www.xx.com/q?a=http://www.sina.com.cn </a><br>
<a href="http://www.xx.com/q?a=http://www.baidu.com" target="main">http://www.xx.com/q?a=http://www.baidu.com </a>
<script>
var links=document.all.tags("a")
var total=links.length
alert("一共有"+total+"个连接")
for (i=0;i<total;i++){
alert("第"+(i+1)+"个连接到\n"+links[i].href.replace("http://www.xx.com/q?a=", ""))
}
</script>