I am not able to get what this statement does in java script.please explain it to me.
url= "/rfp/AjaxCreateBuyer".
This below statement has been placed in master page file of an asp.net mvc project.
var Url = function (url) {
var baseUrl = '@Url.Content("~/")';
return baseUrl + url.replace(/^\//, "");
}
Thanks Much.
It builds the url relative to the root of the site