You can use javascript object model or rest api to get parent web properties. If using REST, call this url _api/web/parentweb
var currWebAbsUrl = _spPageContextInfo.webAbsoluteUrl;
$.ajax({
url: currWebAbsUrl + "/_api/web/parentweb",
method: "GET",
headers: {
"Accept": "application/json; odata=verbose"
},
success: function (data) {
var parentWebTitle = data.d.Title;
window.console && console.log(parentWebTitle);
},
error: function (err) {
window.console && console.log('Error: ' + JSON.stringify(err));
}
});
See MSDN article: https://msdn.microsoft.com/en-us/library/office/jj246539.aspx