2012-04-14 5 views

答えて

1

は、URLの使用から、このコードをトークンをつかむためにwindow.location.hash

を使用して、URLのハッシュ部分を取得することができます。

<script type="text/javascript"> 
    hash = window.location.hash.substr(1); //url of the current page 
    arHash = hash.split('='); //this creates an array with key ([0] element) and value ([1] element) 
    hash_value = arHash[1]; //recieve value 
</script> 
関連する問題