Forum Moderators: open
<script language="JavaScript">
function loadfile(){
file = document.myForm.theFILE.value;
parent.bottom.location = file;
}
</script>
<form name="myForm">
<input type="file" name="theFILE" size="70"><br/>
<input type="submit" value="Send File" onClick="loadfile()">
</form>
Can't seem to get files to load in the bottom frame. I have made sure the files follow the "file:///..." setup but that does not seem to work. Any help is appreciated.
frame_main.html
<html>
<frameset rows="30%,80%">
<frame src="test_local_files.html" name="top">
<frame src="bottom_frame_test.html" name="bottom">
</frameset>
</html>
test_local_files.html
<html>
<head>
<script language="JavaScript">
function loadfile(){
file = document.myForm.theFILE.value;
parent.bottom.location.href = file;
}
</script>
</head>
<body>
<form name="myForm">
<input type="file" name="theFILE" size="70"><br />
<input type="button" value="Send File" onClick="loadfile()">
</form>
</body>
</html>
bottom_frame_test.html
<html>
<head></head>
<body>
test frame
</body>
</html>