{"json_modified": "2015-12-14T04:07:36.093095", "slug": "Web/Events/popstate", "tags": [], "locale": "zh-CN", "title": "popstate", "translations": [{"title": "popstate", "url": "/en-US/docs/Web/Events/popstate", "tags": [], "summary": "The popstate event is fired when the active history entry changes. If the history entry being activated was created by a call to history.pushState() or was affected by a call to history.replaceState(), the popstate event's state property contains a copy of the history entry's state object.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-08-13T02:25:44", "review_tags": []}, {"title": "popstate", "url": "/pt-BR/docs/Web/Events/popstate", "tags": [], "summary": "O evento\u00a0popstate \u00e9 disparado quando a entrada do\u00a0hist\u00f3rico\u00a0ativa \u00e9 alterado. Se o hist\u00f3rico de entrada a ser ativado for criado por uma chamada\u00a0history.pushState()\u00a0ou for afetada por uma\u00a0chamada\u00a0history.replaceState(),\u00a0a\u00a0prorpiedade\u00a0dos eventos popstate cont\u00e9m uma c\u00f3pia do hist\u00f3rico de entrada do objeto.

\n Note \u00a0que apenas chamando\u00a0history.pushState() ou\u00a0history.replaceState()\u00a0n\u00e3o ira disparar um evento\u00a0popstate.\u00a0O evento popstate apenas \u00e9 disparado ap\u00f3s uma a\u00e7\u00e3o no navegador como um click no bot\u00e3o de voltar (ou chamando history.back() por javascript)

\n Navegadores tendem a lidar com o evento popstate\u00a0diferentemente no carregamento da p\u00e1gina.\u00a0Chrome (anterior vers\u00e3o 34) e\u00a0Safari sempre emitem um evento popstate no carregamento da p\u00e1gina, mas o Firefox\u00a0n\u00e3o.", "localization_tags": [], "locale": "pt-BR", "last_edit": "2015-11-11T03:10:44", "review_tags": []}, {"title": "popstate", "url": "/fr/docs/Web/Events/popstate", "tags": [], "summary": "L'\u00e9v\u00e9nement\u00a0popstate\u00a0est ex\u00e9cut\u00e9 lorsque l'entr\u00e9e active de l'historique\u00a0change. Si l'entr\u00e9e active de l'historique en cours d'activation a \u00e9t\u00e9 cr\u00e9\u00e9 par un appel \u00e0\u00a0history.pushState()\u00a0ou a \u00e9t\u00e9 affect\u00e9e par un appel \u00e0 history.replaceState(), la propri\u00e9t\u00e9\u00a0state\u00a0de l'\u00e9v\u00e9nement\u00a0popstate\u00a0contient une copie de l'objet\u00a0state\u00a0de l'entr\u00e9e d'historique.", "localization_tags": [], "locale": "fr", "last_edit": "2015-11-23T03:29:19", "review_tags": ["editorial"]}], "modified": "2015-12-14T04:07:35", "label": "popstate", "localization_tags": [], "url": "/zh-CN/docs/Web/Events/popstate", "last_edit": "2015-12-14T04:07:33", "summary": "\u5f53\u524d\u6d3b\u52a8\u5386\u53f2\u9879(history entry)\u6539\u53d8\u4f1a\u89e6\u53d1popstate\u4e8b\u4ef6\u3002\u8c03\u7528history.pushState()\u521b\u5efa\u65b0\u7684\u5386\u53f2\u9879(history entry)\uff0c\u6216\u8c03\u7528history.replaceState()\u66ff\u6362\u65b0\u7684\u5386\u53f2\u9879(history entry)\uff0c\u90a3\u4e48popstate\u4e8b\u4ef6\u7684state\u5c5e\u6027\u4f1a\u5305\u542b\u5386\u53f2\u9879(history entry)\u72b6\u6001\u5bf9\u8c61(state object)\u7684\u62f7\u8d1d\u3002", "sections": [{"id": "\u5e38\u89c4\u4fe1\u606f", "title": "\u5e38\u89c4\u4fe1\u606f"}, {"id": "\u5c5e\u6027", "title": "\u5c5e\u6027"}, {"id": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027", "title": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027"}, {"id": "\u793a\u4f8b", "title": "\u793a\u4f8b"}, {"id": "\u76f8\u5173\u4e8b\u4ef6", "title": "\u76f8\u5173\u4e8b\u4ef6"}], "id": 89087, "review_tags": []}