I am creating a popup window in sharepoint using this code in javascript.
function openDialog(title, url, width, height, CallResult) {
var options = { url: getUrl(url),
title: title,
allowMaximize: true,
showClose: true,
width: width,
height: height,
dialogReturnValueCallback: CallResult
};
ModalDialog = SP.UI.ModalDialog.showModalDialog(options);
return ModalDialog;
}
I want to know if anyone has an idea on how to change the title of the Modal Dialog dynamically when it is open.
For example when the popup opens the title is "my title" and when i press a button in the page that is contained in the popup the title changes.
Can it be done?
Thank you for your time.