CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

프리랜서 커뮤니티

<script>top.history.pushState(null, null, location.href);</script>

window.top. 혹은 top. 은 프레임 안에서일 경우입니다. 일반적인 경우는 

history.pushState()로 하시면 됩니다.


function changeUrl(title, url, state) {

    if (typeof (history.pushState) != "undefined") { //브라우저가 지원하는 경우
        history.pushState(state, title, url);
    }
    else {
        location.href = url; //브라우저가 지원하지 않는 경우 페이지 이동처리
    }
}


추천한 사람