[팁] 프레임셋 안에서 주소창 주소변경하기
2019.04.06 16:17
0
https://eond.com/417717
<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; //브라우저가 지원하지 않는 경우 페이지 이동처리
    }
}


라이믹스는 이온디와 함께

닫기

마이페이지

로그인을 해주세요