25.203. Location.replace( ): replace one displayed document with anotherJavaScript 1.125.203.1. Synopsislocation.replace(url) 25.203.1.1. Arguments
25.203.2. DescriptionThe replace( ) method of the Location object loads and displays a new document. Loading a document in this way is different from simply setting location or location.HRef in one important respect: the replace( ) method does not generate a new entry in the History object. When you use replace( ), the new URL overwrites the current entry in the History object. After calling replace( ), the browser's Back button does not return you to the previous URL; it returns you to the URL before that one. 25.203.3. See AlsoHistory |