Skip to content

Instantly share code, notes, and snippets.

@Microsofttechies
Created October 14, 2014 22:53
jQuery Get Url Parameter using GetUrlKeyValue
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test</title>
<script src="//code.jquery.com/jquery-1.7.2.js"></script>
<script>
$(document).ready(function () {
var queryStringValue = GetUrlKeyValue('EditPage', window.location.href);
var queryStringValue1 = GetUrlKeyValue('EditPage', false, window.location.href);
var queryStringValue2 = GetUrlKeyValue('EditPage', true, window.location.href, false);
var queryStringValue3 = GetUrlKeyValue('EditPage', 'http://www.abc.com?EditPage=true');
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment