2010年10月7日木曜日

JavaScript Location Object

例えばurlは http://smac2.jp:80/track/add/?sid=180#top

location.href = "http://smac2.jp:80/track/add/?sid=180#top"
location.hash = "#top"
location.host = "smac2.jp:80"
location.hostname = "smac2.jp"
location.pathname = "/track/add/"
location.port = "80"
location.protocol = "http:"
location.search = "?sid=180#top"
location.target = ""

0 件のコメント:

コメントを投稿