Location 객체
Location
1. 현재 윈도우의 URL 알아내기
console.log(location.toString(), location.href);2. URL Parsing
console.log(location.protocol, location.host, location.port, location.pathname, location.search, location.hash)3. URL 변경하기
3-1. 사용자가 다른 URL로 이동시켜야 할 때
3-2. 현재 웹페이지 내용을 리로드하고 싶을 때
Last updated