<iframe id="show" height="500" width="600" src=""></iframe>
<script type="text/javascript">
  var show = document.getElementById('show');
  setInterval("show.src='http://student.csdn.net/space.php'",10000);
</script>为什么iframe中显示出来的页面,以转到该地址就跳出iframe,跳到主页面。
为什么试试其他网址就不会跳出,而直接显示在iframe中,10秒刷新一次~