how to find base url code example
Example: find base url in javascript
var base_url = window.location.origin;
var host = window.location.host;
var pathArray = window.location.pathname.split( '/' );
var base_url = window.location.origin;
var host = window.location.host;
var pathArray = window.location.pathname.split( '/' );