Created
July 20, 2015 09:53
-
-
Save emulsion-io/9df3479832c7698fff13 to your computer and use it in GitHub Desktop.
Récupère les paramètres d'une URL en javascript.
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
function getUrlParam(name) { | |
var results = new RegExp('[\\?&]' + name + '=([^]*)').exec(window.location.href); | |
return (results && results[1]) || undefined; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment