日期:2014-05-16  浏览次数:20333 次

js刷新页面方法大全(收藏)

收藏一些js刷新当前页面的方法,这个在编程中经常用得到,正在找js刷新页面代码的朋友收藏下啦。
一、js刷新当前页面的例子:?
以三个页面分别命名为frame.html、top.html、bottom.html为例来具体说明如何做。?
frame.html 由上(top.html)下(bottom.html)两个页面组成,代码如下:?

  1. <!doctype html?public?"-//w3c//dtd html 4.0 transitional//en">?
  2. <html>?
  3. <head>?
  4. <title>?frame?</title>?
  5. </head>?
  6. <frameset?rows="50%,50%">?
  7. <frame?name=top?src="top.html">?
  8. <frame?name=bottom?src="bottom.html">?
  9. </frameset>?
  10. </html>

现在假设top.html (即上面的页面) 有七个button来实现对bottom.html (即下面的页面) 的刷新,可以用以下七种语句:?
top.html 页面的代码:?