본문 바로가기
개발자의 삶/Web(html, script, css) 기초

팝업 url 변경하기

by 나.R.D.(Rule Destoryer) 2014. 9. 25.



history.pushState('', document.title, window.location.pathname);

 


window . history . pushState(datatitle [, 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


반응형

댓글