Can anyone with some familiarity with the Mozilla DOM tell me why the following code to break out of frames wont work? It does work in Internet Explorer, the older Netscapes, but not the newer Mozilla 1.x (I’ve got 1.6 now)… Basically, I don’t want people to “feature” my website with some advertisement in a top frame, and until MOZILLA, (and the last 7.1 incarnaation of Netscape), this script worked on everything. Originally I though the problem was the “popup” manager blocking the window functions. But that doesn’t seem to make a difference.
function frameBreak()
{
if (window.parent != window.self )
{window.open(‘
}
<body onload=”Javascript:frameBreak();”>