Force a page or frame refresh


From http://www.faqts.com/knowledge_base/view.phtml/aid/981/fid/127

The usual objects you script inside a window (e.g.
  document
  history
  location
  varName
  methodName()

are just properties of the window object and the above are just shortcuts for
   window.document
  window.history
  window.location
  window.varName
  window.methodName()


If you replace window with a reference to another window object you can script that as well (subject to cross domain security restrictions).

To access a frameset window from inside a frame you access the parent object so:
  parent.document
  parent.location

etc. scripts the containing window for a frame.


parent.frameName
is the reference to the <FRAME NAME="frameName" ...> sibling thus
  parent.frameName.document
  parent.frameName.location
  parent.frameName.varName
  parent.frameName.functionName()

scripts another frame.

 

To refresh a window use the Javascript function "reload".  Therefore, to refresh the currect window use:

location.reload(true)

To refresh a sibling frame use parent.framename.location.reload(true).

 

Here is the entire script to reload the frame named "left_frame".

<script language="JavaScript1.1">
<!--
parent.left_frame.location.reload(true);
//-->->
</script>