Click to See Complete Forum and Search --> : please, help me!!
minhien
07-09-2003, 10:28 PM
I write a small code javascript :
<Script language="JavaScript">
function whatFile() {
window.open('file:///C:/tmp/tusachechip.gif', 'preview', 'width=200,height=200');
}
</script>
And i created a button
<input type=button onClick="whatFile();" value="Preview..."></td>
always error when i click mouse on this button
Why?
Thanks a lot!
Khalid Ali
07-09-2003, 11:27 PM
Whats the error???
minhien
07-09-2003, 11:36 PM
it is
An error has o.....
line:..
char:..
url :file://C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\O1QVGLUJ\[1].htm
freefall
07-09-2003, 11:44 PM
send the rest of your code if it's not too big, it works fine for me, besides that I have no file:///C:/tmp/tusachechip.gif
also, include the line and char from the error, that's important
thanks,
Ian
minhien
07-09-2003, 11:49 PM
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<Script language="JavaScript">
function whatFile() {
window.open('file:///C:/tmp/tusachechip.gif', 'preview', 'width=200,height=200');
}
</script>
</head>
<body>
<input type=button onClick="whatFile();" value="Preview..."></td>
</body>
</html>
freefall
07-09-2003, 11:57 PM
I'm not getting any errors when I run it, and I don't see anything wrong.
Could you give exactly what the error is telling you word for word?
thanks
- Ian