Created
November 18, 2015 08:59
-
-
Save nurfarazi/15e3b630aff5052fe4af to your computer and use it in GitHub Desktop.
java script splict and get user id
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
var fullparam = window.location.href; | |
var parts = fullparam.split('/', 7); | |
var gotit = parts[4]; | |
var userid = gotit.replace(/#/g, ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment