location.href : 현재 페이지의 href(URL)를 반환location.hostname : 웹호스트의 도메인 이름을 반환location.pathname : 현재 페이지의 경로와 파일 이름을 반환location.protocol : 사용된 웹 프로토콜 반환(http:// or https://)location.assign : 새로운 문서를 로드 출처 : http://jun.hansung.ac.kr/WP_2014/WP/lecture%20notes/JavaScript%20Window%20Location.html