{"json_modified": "2016-09-09T02:16:38.449866", "uuid": "f7032724-e8df-4d21-9f6a-2457403e0bc6", "title": "Location.replace()", "url": "/en-US/docs/Web/API/Location/replace", "tags": ["API", "R\u00e9f\u00e9rence", "Reference", "HTML-DOM", "Location", "Method"], "translations": [{"uuid": "0a19df93-6a20-4c20-81e9-8ed9ea0a0909", "title": "Location.replace()", "url": "/fr/docs/Web/API/Location/replace", "tags": ["API", "Reference", "Methode", "R\u00e9f\u00e9rence", "JavaScript", "M\u00e9thode"], "summary": "La m\u00e9thode Location.replace()
remplace la ressource actuelle par celle pr\u00e9sente \u00e0 l'URL donn\u00e9e. La diff\u00e9rence avec la m\u00e9thode assign()
est que, apr\u00e8s avoir utilis\u00e9 replace()
, la page actuelle ne sera pas enregistr\u00e9e dans l'historique de session History
, ce qui signifie que l'utilisateur ne sera pas en mesure d'utiliser le bouton pr\u00e9c\u00e9dent pour y revenir.", "localization_tags": [], "locale": "fr", "last_edit": "2014-06-04T09:00:50", "review_tags": []}, {"uuid": "1904add3-6c1d-4bc2-bd25-2edc90023a3d", "title": "Location.replace()", "url": "/ru/docs/Web/API/Location/replace", "tags": ["HTML-DOM", "Reference", "API", "Location", "Method"], "summary": "\u041c\u0435\u0442\u043e\u0434 Location
.replace()
\u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u043f\u043e URL, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430. \u041e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 assign()
\u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 replace()
\u0442\u0435\u043a\u0443\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0430 \u0432 History
, \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430\u0437\u0430\u0434, \u0447\u0442\u043e\u0431\u044b \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a \u043d\u0435\u0439.", "localization_tags": [], "locale": "ru", "last_edit": "2016-09-09T02:16:31", "review_tags": ["technical"]}, {"uuid": "0db77d0a-258b-417f-a010-57abe447589f", "title": "Location.replace()", "url": "/zh-CN/docs/Web/API/Location/replace", "tags": [], "summary": "Location
.replace()
\u65b9\u6cd5\u4ee5\u7ed9\u5b9a\u7684URL\u6765\u66ff\u6362\u5f53\u524d\u7684\u8d44\u6e90\u3002 \u4e0eassign()
\u65b9\u6cd5 \u4e0d\u540c\u7684\u662f\u8c03\u7528replace()\u65b9\u6cd5\u540e\uff0c\u5f53\u524d\u9875\u9762\u4e0d\u4f1a\u4fdd\u5b58\u5230\u4f1a\u8bdd\u5386\u53f2\u4e2d\uff08
session History
\uff09\uff0c\u8fd9\u6837\u7528\u6237\u70b9\u51fb\u56de\u9000\u6309\u94ae\u5c06\u4e0d\u4f1a\u518d\u8df3\u8f6c\u5230\u8be5\u9875\u9762\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2014-02-16T21:48:25", "review_tags": []}], "modified": "2015-08-17T23:40:38", "label": "Location.replace()", "localization_tags": [], "locale": "en-US", "id": 81999, "last_edit": "2015-08-17T23:40:34", "summary": "The Location
.replace()
method replaces the current resource with the one at the provided URL. The difference from the assign()
method is that after using replace()
the current page will not be saved in session History
, meaning the user won't be able to use the back button to navigate to it.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Examples", "title": "Examples"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/Location/replace", "review_tags": []}