Querystring
No notes
Syntax:
JavaScript
var oQS = new Object(); window.location.search.replace( new RegExp( "([^?=&]+)(=([^&]*))?", "g" ), function( $0, $1, $2, $3 ) { oQS[ $1 ] = $3; } ); alert(oQS['id']);
1 Comment
→
What about URL-decoding of the names and values?