location.protocol
プロトコル(スキーム)を返します。
構文
location.protocol
例文
<html>
 <head>
  <title>location.protocol</title>
  <script type="text/javascript"><!--
  window.onload = function () {
   document.getElementById("result").innerHTML = location.protocol;
  }
  // --></script>
 </head>
 <body>
 <div id="result"></div>
 </body>
</html>
関連記事
- location.search
 - location.replace
 - location.reload
 - location.port
 - location.pathname
 - location.href
 - location.hostname
 - location.host
 - location.hash
 - location.assign
 
スポンサーリンク





