ASP.NET
Wednesday, July 22, 2015
Get the query string value from URL using javascript
function getQueryString(key){
var regex=new RegExp('[\\?&]'+key+'=([^&#]*)');
var qs=regex.exec(window.location.href);
return qs[1];
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment