Ok, I wanted to use a window.locaton to open a html file on my hard drive. I have setup a simple way to try and do this, but I am getting the error:
"Can not find 'file:///C:happy.html'. Make sure the path or internet address is correct."
The file name and path are correct. What am I doing wrong?
<html>
<head>
<script language = "JavaScript">
function changeLocation(){
this.window.location = "C:happy.html";
}
</script>
<body>
<INPUT TYPE="button" VALUE="change" onclick="changeLocation();">
</body>
</html>
"Mistakes are the portals of discovery"
James Joyce
"Can not find 'file:///C:happy.html'. Make sure the path or internet address is correct."
The file name and path are correct. What am I doing wrong?
<html>
<head>
<script language = "JavaScript">
function changeLocation(){
this.window.location = "C:happy.html";
}
</script>
<body>
<INPUT TYPE="button" VALUE="change" onclick="changeLocation();">
</body>
</html>
"Mistakes are the portals of discovery"
James Joyce