<a href="get.html?name=Dhirendra">Test</a>
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
function gup( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
}
var frank_param = gup( 'name' );
//alert(frank_param);
document.write(frank_param);
</script>
This is good code and successfully run ...
ReplyDeletethanks ds rathod.