반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- IntelliJ
- 테이블
- date
- json
- Visual Studio Code
- 정규식
- javascript
- input
- 이탈리아
- 자바
- Java
- windows
- Maven
- 배열
- table
- js
- vscode
- Array
- 자바스크립트
- ArrayList
- Eclipse
- 문자열
- 인텔리제이
- string
- Button
- html
- CMD
- list
- CSS
- 이클립스
Archives
- Today
- Total
목록window.location (1)
어제 오늘 내일
[Javascript] 현재 페이지 URL 가져오기
Javascript에서 현재 페이지의 URL 주소를 가져오는 방법을 소개합니다. window.location (Location 객체) 현재 페이지의 URL을 알아오기 위해 window.location 속성을 사용할 수 있습니다. window.location 속성에 접근하면 Location 객체에 접근할 수 있는데 이 Location 객체의 속성들을 사용해서 현재 페이지의 URL 정보를 알아낼 수 있습니다. // "https://hianna.tistory.com/325?category=764998" window.location.href // "https:" window.location.protocol // "hianna.tistory.com" window.location.host // "hianna.tis..
IT/Javascript
2020. 12. 27. 07:08