파닥이

[javascript] 현재 URL 정보 가져오기 본문

IT/JavaScript

[javascript] 현재 URL 정보 가져오기

알라이또 2019. 5. 2. 14:22
반응형

https://www.codingfactory.net/10438

 

JavaScript / Object / Location - URL 정보 가져오는 객체

location location은 URL 정보를 가져오는 객체입니다. URL 전체 또는 일부의 정보를 가져올 수 있는데, 대표적인 것들은 다음과 같습니다. location location.host location.hostname location.href location.pathname location.protocol 예제 URL이 https://example.codingfactory.net/_lab/javascript.html 일 때, 각 객체 [...]

www.codingfactory.net

 

Comments