반응형
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 | 31 |
Tags
- list
- table
- 자바
- json
- js
- date
- 테이블
- html
- Visual Studio Code
- IntelliJ
- 정규식
- 이탈리아
- 배열
- windows
- 자바스크립트
- Button
- vscode
- CMD
- 문자열
- Java
- Array
- input
- string
- CSS
- ArrayList
- Eclipse
- 이클립스
- javascript
- 인텔리제이
- Maven
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