1、設定またはファイル名またはパスを指定します。
警告(window.location.pathname)
2、全体のURL文字列を設定または取得します。
警告(window.location.href)。
3、ポート番号を設定またはURLに関連付けられます。
警告(window.location.port)
4、URLのプロトコル部分を設定または取得します。
警告(window.location.protocol)
5、シャープ記号が続くhref属性「#」でセグメントを設定または取得します。
警告(window.location.hash)
6、ホスト名とポート番号の場所またはURLを設定または取得します。
警告(window.location.host)
7、href属性セクションは、疑問符を、以下の設定または取得します。
警告(window.location.search)
8、取得変数値(バック取ら部分等しいです)
VaRのURL = window.location.search。
//警告(url.length)。
//警告(url.lastIndexOf( '='));
VaRのLOC = url.substring(url.lastIndexOf( '=')+ 1、url.length)。
9は、現在のページのドメイン名を取得するために使用します
VARドメイン= document.domainを。