获取iframe的src document.getElementById("iframe1").location.href 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.frames["iframe1"].window.location.href iframe中的内容不能跨域,本域内时可以的 <SCRIPT language='Jscript'>function fun1(){alert(document.all.frame1.src);}</SCRIPT><input type='button' name='tt' value='test00' onclick="document.all.frame1.src='http://www.baidu.com'" ><br><input type='button' name='aa' value='test01' onclick='fun1();' ><br><IFRAME height='200' width='300' name='frame1' frameborder='2' src='http://www.126.com' marginwidth='2' ></IFRAME> 使用datagrid formatter 碰到 的问题。 对了,有个问题一直没留意 js文件中的 document.write的问题,在线等 关于继承问题 单击浏览器的刷新按钮为什么不触发window.location.reload呢? 很奇怪的javascript 数组问题 高手来看看 js正则表达式如何写 写了个滚动,欢迎大家给点改进意见 ASP中的Session与cookie是否可以读写同一个属性? 关于iframe加载的问题,请大神帮忙! 关于超文本邮件的显示 关于多个Frame之间网页通过滚动条联动问题。很着急,谢谢。
<SCRIPT language='Jscript'>
function fun1(){alert(document.all.frame1.src);}
</SCRIPT><input type='button' name='tt' value='test00' onclick="document.all.frame1.src='http://www.baidu.com'" >
<br>
<input type='button' name='aa' value='test01' onclick='fun1();' >
<br><IFRAME height='200' width='300' name='frame1' frameborder='2' src='http://www.126.com' marginwidth='2' >
</IFRAME>