2012-04-14 3 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>