function getQuerystring(key, default_, getUser) {
if (default_ == null) default_ = "";
key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regex = new RegExp("[\\?&]" + key + "=([^&#]*)");
var qs = regex.exec(window.location.href);
if (qs == null)
return default_;
else
return qs[1];
}
var getUser = getQuerystring('name');
var getResetCode = getQuerystring('resetpassword');
No comments:
Post a Comment