Program

javascript URL 정보

마니씨 2013. 2. 25. 17:14

http://manic.tistory.com:8080/test.aspx?a=b

 

 window.location.hostname  manic.tistory.com
 window.location.href  http://manic.tistory.com:8080/test.aspx
 window.location.host  manic.tistory.com:8080
 window.location.port  8080
 window.location.pathname  test.aspx
 window.location.search  ?a=b
 window.location.protocol

 http: