Zahnspangenterminator: Script verurscht Fehler - aber ich finde ihn nicht

Beitrag lesen

<html><head>
<script language="JavaScript">
<!--
function is_msie()
{
  if(navigator.appName == Microsoft Internet Explorer){
    return true;
  } else {
    return false;
  }
}
function Framing() {
if (this.document == top.document || top.location.host != this.location.host) {
var pathprefix = location.protocol + '//'

  • location.host
  • location.pathname.substring(0,
    location.pathname.lastIndexOf('/')+1);
    var doctitle = document.title;
    document.clear();
    document.open("text/html");
    document.writeln('<html>\n<head><title>' +doctitle+ '</title></head>');
    document.writeln('<frameset  rows="65,*" border="0"><frame src="oben.php" scrolling="no"><frameset  cols="140,*,130" border="0"><frame src="'+pathprefix+'navi.html"><frame src="'+top.location.href+'" name="Anzeige"><frame src="'+pathprefix+'rechts.php" name="rechts"></frameset></frameset><noframes>Ihr Browser unterstützt keine Frames!</noframes></head><body></body></html>');
    document.close();
    return true;
    }
    return false;
    }
    function msieFraming() {
    if (is_msie()) {
    if (Framing()) {
    window.setTimeout('top.frames["Anzeige"].location.href = '+'"'+top.location.href+'";',10);
    }}}
    function netscFraming() {
    if (!is_msie()) Framing();
    }
    msieFraming();

function glossar(wort)
{
window.open('glossar.php?wort='+ wort +'','OK','height=150,width=300,dependent=no,location=no,menubar=no,resizable=no,status=no,toolbar=no');
}
//-->
</script><link rel="stylesheet" href="css.css" type="text/css">
</head>
<body onLoad="netscFraming()">

Das ist das Script und bei der Zeile

if (this.document == top.document || top.location.host != this.location.host)

kommt der Fehler "Zugriff wurde verweigert". Warum? Und ich denke, dass es an diesem navigator.appName liegt. Bitte helft mir, ich bin kurz vorm Verzweifeln! Live zu sehen unter der angegebenen URL