본문 바로가기

카테고리 없음

Location 객체

현재 윈도우의 문서가 위치하는 URL을 알아내는 방법

location.toString()

location.href()

 

* 크롬은 http://를 생략해

 

프로토콜 : 

 

host : 서비스를 식별하는 주소

port : 컴퓨터에서 돌아가는 여러 소프트웨

어를 식별하는거

pathname : 웹서버 접속시 구체적인 정보

search : 

hash : 

 

http://opentutorials.org:80/module/1?id=1#hash

protocol host port pathname search  #hash

 

opentutorials.org

오픈튜토리얼스 업데이트

opentutorials.org

URl 변경하기