개발자의 삶/Web(html, script, css) 기초
팝업 url 변경하기
나RD
2014. 9. 25. 17:47
728x90
history.pushState('', document.title, window.location.pathname);
|
history
. pushState
(data, title [, url ] )주어진 타이틀로, 주어진 데이터를 세션 히스토리에 씁니다. URL이 주어졌다면 함께 적용합니다.
Pushes the given data onto the session history, with the given title, and, if provided, the given URL.
참고 |
http://stackoverflow.com/questions/15322917/clearing-url-hash |
http://html5.clearboth.org/history.html |
반응형