Tuesday, May 4, 2010

To get hash '#' ID from URL using Javascript


To get hash '#' ID from URL


< script type="text/javascript" >
if( window.location.hash ) {
var str = window.location.hash;
var str_split = str.split("#");
var getid = str_split[1];
}

< /script >

1 comment: