getBaseURL
Gets the current URL without any parameters or fragment identifiers.
- Use
String.prototype.replace()with an appropriate regular expression to remove everything after either'?'or'#', if found.
Gets the current URL without any parameters or fragment identifiers.
String.prototype.replace() with an appropriate regular expression to remove everything after either '?' or '#', if found.