OK so I put the iframe on the page with display set to none. I open it like this:
$('#externalSite').dialog({ ... });
on the main parent window I have a function like this:
function closeIframe()
{
$('#externalSite').dialog('close');
return false;
}
From within the iframe I call:
window.parent.closeIframe();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…