任务描述:
通过点击等操作,修改嵌套的html中iframe的src,并动态展现出来
在网上搜了很多,大部分那都是说通过js进行操作,当然也有很多反馈是效果不好,本人找了几个小时终于找到一种简单的方法,如下:
<span style="font-size:18px;"> <body>
<input type="button" value="改变地址" onClick="parent.displayinhere.location.href='http://www.baidu.com/'">
<iframe name="displayinhere" width=250px; height=200px; src="http://www.hao123.com">
</body> </span>
通过最简单的方法,实现基本功能,这才是我想要的!Mark一下!