用document.frames("id1").src设置iframe的属性,使其显示内容改变。无效。 请问,除了用link、form的提交方式,有别的办法改变iframe的内容吗?我的JS写法有错误吗? 谢谢。 --------------------------------------------------------------- 仁则见人,智则风智 1、 <input onclick="document.all.mxh.location.replace('http://sina.com.cn')" type=button value=change><br> <iframe id=mxh src="http://colorweb.go.163.com"></iframe> 2、 <input onclick="document.all.rpl.innerHTML='<iframe id=mxh src=\'http://www.sina.com\'></iframe>'" type=button value=change><br> <span id=rpl><iframe id=mxh src="http://colorweb.go.163.com"></iframe></span> |
posted on 2006-04-03 15:29
汪杰 阅读(366)
评论(0) 编辑 收藏 引用 所属分类:
hengxing网站js