怎么刷新iframe页面 本帖最后由 gaowenzhen 于 2011-04-22 00:00:25 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 试下调用iframe的load事件,在事件里与服务器交互来刷新 updaterepo(){document.getElementById("abc").src="路径"; window.frames.abc.reload;} <script>function updaterepo(){document.getElementById("abc").src="repo.aspx?id="+<%=id%>+"&curTime="+(new Date()).getMilliseconds ();//还可以按年月日拼接字符串代替(new Date()).getMilliseconds ()}</script> <body> <div><iframe id="abc" src="repo.aspx?id='这是里js动态的id'"/></div><span click="updaterepo()">更新repo.aspx</span> </body>思路 听说北北回来了,马上准备了问题。。关于SetTimeout JS弹出模式窗体 大小问题! 如何用js让ie同时打开50个页面?(在线等) textarea的格式 一个关于正则表达式的问题 关于document.domain在同一主域下使用时偶尔报错的问题 大,小梅子及各位高手帮忙来看看 怎样使打开第二个网页时不覆盖原有的网页 在textarea中显示html页面 如何得到window呀? 求助一个关于DHTML的问题 javascript代码输出结果让人很迷惑!!
document.getElementById("abc").src="路径";
window.frames.abc.reload;
}
<script>
function updaterepo(){
document.getElementById("abc").src="repo.aspx?id="+<%=id%>+"&curTime="+(new Date()).getMilliseconds ();//还可以按年月日拼接字符串代替(new Date()).getMilliseconds ()
}
</script>
<body>
<div><iframe id="abc" src="repo.aspx?id='这是里js动态的id'"/></div>
<span click="updaterepo()">更新repo.aspx</span>
</body>思路