amitabhaghosh197
1/15/2015 - 11:02 AM

base path [window.location.origin]

base path [window.location.origin]

     // Reff : http://stackoverflow.com/questions/1420881/javascript-jquery-method-to-find-base-url-from-a-string
     //        http://stackoverflow.com/questions/1420881/javascript-jquery-method-to-find-base-url-from-a-string
     //        http://css-tricks.com/snippets/javascript/get-url-and-url-parts-in-javascript/
     
     var base_url = window.location.protocol+"//"+window.location.host+"/";
     var new_url = base_url + "pmondal70"+ "/" + "Accounts" + "/";
     console.log(new_url);