Hallo zusammen,
ich habe ein Script geschrieben, daß im IE fehlerfrei läuft. In Netscape bekomme ich aber folgende Fehlermeldung:
JavaScript Error: ../allgemein/framecheck.js, line 20:
frames.content has no properties.
Das Script lautet folgendermaßen:
function checkFrameset()
{
if (!top.top_nav) location.replace("../index.htm?" + location.pathname);
}
function checkFramesetZweiteEbene()
{
if (!top.top_nav) location.replace("../../index.htm?" + location.pathname);
}
function checkFramesetDritteEbene()
{
if (!top.top_nav) location.replace("../../../index.htm?" + location.pathname);
}
function checkParameter(content)
{
var Adressanhang=location.search;
if (Adressanhang) frames.content.location.replace(Adressanhang.substring(1,Adressanhang.length))
else frames.content.location.replace(content);
}
benutzt wird das ganze folgendermaßen:
<html>
<head>
<title>entory Intranet</title>
<script language="JavaScript" src="../allgemein/framecheck.js" type="text/javascript">
</script>
</head>
<frameset cols="0,245,*" border="0" frameborder="0" framespacing="0"
onLoad="checkParameter('../departments/unterthema/content01.htm')">
usw. und so fort!
Wo liegt mein Fehler????
Kevin