Javascript Reference
Categories: location

javascript location replace( )

@March 15, 2008, 1:22 a.m.
replace( )Firefox/Netscape/NN 3 IE 4 Chrome/Safari/DOM n/a  



Loads a new document into the reference window and replaces the browser's history listing entry of the current document with the entry of the new document. Thus, some interim page that you don't want appearing in history (to prevent the Back button from ever returning to the page) can be removed from the history and replaced with the entry of the newly loaded document.

  • A string version of a complete or relative URL of a document to be loaded into a window or frame.
Returned Value


Powered by Linode.