Created
October 23, 2016 03:42
-
-
Save kimisme9386/ee401ef4138671d986404e1c0704395e to your computer and use it in GitHub Desktop.
JS get url request
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 urlRequest = ""; | |
if (window.location.port) { | |
urlRequest = window.location.protocol + "//" + window.location.host + ":" + window.location.port + window.location.pathname; | |
} else { | |
urlRequest = window.location.protocol + "//" + window.location.host + window.location.pathname; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment