/gist:74f1bf7fc3926f3a6dec Secret
Created
October 14, 2014 22:53
jQuery Get Url Parameter using GetUrlKeyValue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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