location.href / location.replace() 개념적 차이 - location.href 는 프로퍼티 => location.href = 'example.page'; - location.replace() 는 메서드 => location.replace('example.page'); 기능적 차이 - location.href 는 새로운 페이지 이동 후 히스토리에 기록한다. - location.replace() 현재 페이지를 새로운 페이지로 변경, 히스토리에 기록하지 않음. (removes the URL of the current document from the document history) => replace()의 경우 뒤로가기를 통해 이전 페이지로 갈 수 없음.