J
Jürgen Heyn
Good afternoon,
when clicking an image I would like to open a new window to display a *.html
file.
The function "ShowInfo" should do this and replace the contents.
The script works fine (the new window opens and the desired code is
executed(displayed).
But the calling page returns: "Error on this page".
Microsoft Frontpage2000 returns: "This object does not support this property
or method."
What's wrong?
Thank you very much for any hint.
Best regards
Jürgen Heyn, Wilhelmshaven, Germany
<html>
<head>
<title>Title</title>
<base target="_self">
<script language="JavaScript">
<!-- Beginn
function ShowInfo()
{
var obj = window.open("Info.html", "Info" ,
"width=640,height=480,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=
no");
obj.clear();
obj.open();
obj.write('<html>');
...
obj.close();
}
// End -->
</script>
</head>
<body>
<a href="javascript:ShowInfo()"><img src="../Buttons/Button.gif" border="0"
width="36" height="36">
</body>
</html>
when clicking an image I would like to open a new window to display a *.html
file.
The function "ShowInfo" should do this and replace the contents.
The script works fine (the new window opens and the desired code is
executed(displayed).
But the calling page returns: "Error on this page".
Microsoft Frontpage2000 returns: "This object does not support this property
or method."
What's wrong?
Thank you very much for any hint.
Best regards
Jürgen Heyn, Wilhelmshaven, Germany
<html>
<head>
<title>Title</title>
<base target="_self">
<script language="JavaScript">
<!-- Beginn
function ShowInfo()
{
var obj = window.open("Info.html", "Info" ,
"width=640,height=480,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=
no");
obj.clear();
obj.open();
obj.write('<html>');
...
obj.close();
}
// End -->
</script>
</head>
<body>
<a href="javascript:ShowInfo()"><img src="../Buttons/Button.gif" border="0"
width="36" height="36">
</body>
</html>