js获取iframe里的元素


1、<iframe id="list_iframe" name="list_iframe"></iframe>

iframe页面元素:

<input type="radio" name="radios" value="1" />

<input type="radio" name="radios" value="2" />

<input type="radio" name="radios" value="3" />

 

2、获取iframe元素的对象:document.getElementById("list_iframe").contentWindow.document.getElementsByName('radios')


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM