js get current url php name code example
Example: javascript to get uri
var newURL = window.location.protocol + "//" + window.location.host + "/" + window.location.pathname + window.location.search
var newURL = window.location.protocol + "//" + window.location.host + "/" + window.location.pathname + window.location.search