Hallo,
Zeile: 1
Zeichen: 1
Fehler: Objekt erwartet
Code: 0
URL: javascript:newWindow('file://Pfad/Datei.html',%20'720',%20'400')
Wie rufst Du das auf? Bei mir funktioniert:
<html>
<head>
<title>HtaTest</title>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<HTA:APPLICATION ID="HtaTest"
APPLICATIONNAME="HtaTest"
BORDER="thick"
CAPTION="yes"
ICON="my.ico"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="yes"
WINDOWSTATE="normal"
>
<script language="JScript">
function newWindow(newURL,newWidth,newHeight)
{
newWin = window.open(newURL,"","width="+newWidth+",height="+newHeight);
newWin.focus();
}
</script>
</head>
<body>
<p>Hallo Welt</p>
<button onclick="newWindow('file://D:/www/docs/test.html',300,300);">Test</button>
<a href="file://D:/www/docs/test.html" onclick="newWindow('file://D:/www/docs/test.html',300,300); return false;">Test</a>
</body>
</html>
viele Grüße
Axel