Use window.location.href As noted in the comments, the line below works but is bugged for Firefox. document.URL 출처 : http://stackoverflow.com/questions/1034621/get-current-url-in-web-browser
현재 URL 주소 가져오기 ( Get the current URL with JavaScript )에 대한 요약내용입니다.
자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.
원문링크 : 현재 URL 주소 가져오기 ( Get the current URL with JavaScript )