주소창 URL 바꾸기


/* change URL */


function util_change_url (title, change_url) {

// pushState() 메서드는 state object, title URL 변수를 가진다. -https://developer.mozilla.org/ko/docs/Web/API/History_API

    if (typeof (history.pushState) != "undefined") {

        var obj = { Title: "", ChangeUrl: change_url };

        history.pushState(obj, obj.Title, obj.ChangeUrl);

    } else {

        //alert("Browser does not support HTML5.");

    }

}

+ Recent posts