Code: Select all
<!--
function breaksFrames(ok)
{
if (ok)
{
if (ok == 1)
{
if(confirm("The page is breaking frames. Press OK to close the window, or Cancel to report."))
{
return true;
} else {
window.open("page-to-report");
return false;
}
return true;
}
}
}
// -->Code: Select all
<FRAMESET rows="100,*" onbeforeunload="breaksFrames(1);">I've tried making the link with this attribute:
Code: Select all
onclick="window.frames[0].breaksFrames(0);"