Am using SP.UI.ModalDialog.showModalDialog
to open popup modal window. A custom anchor for closing using self.close
and window.close
without luck and no error found in console log.
function modalPopHwnd(targetURL, xwidth) {
var options = {
url: targetURL, width: xwidth,
};
SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);
}//.the modal window
<a onclick="modalPopHwnd('/_layouts/CopyUtil.aspx?Use=id&Action=dispform&ItemId=6&ListId=8c103834-48d8-4e0b-a5d2-59b04cd61aa7&WebId=29d8af83-b455-4c39-ab1b-7517b3ea3ced&SiteId=9af8b4f2-01b3-49fd-bbed-130f4f93b8e1&Source=http%3A%2F%2Fportal%2FPages%2FHomepage%2Easpx', 560)" class="anchorOrange12">News Title</a>
Any idea? TIA.