Geeks With Blogs
Daily dotnet {notes on codes} July 2010 Entries
Get Querystrings using javascript
Here is the function function getQuerystring(key, default_) { if (default_ == null) default_ = ""; key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regex = new RegExp("[\\?&]" + key + "=([^&#]*)"); var qs = regex.exec(window.location.... if (qs == null) return default_; else return qs[1]; } *taken from http://www.bloggingdevelope... ......

Posted On Friday, July 9, 2010 1:48 PM

Copyright © Prasenjit | Powered by: GeeksWithBlogs.net