<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>New Page 7</title>
<script>
function test() {
with(document.frm1) {
F1.click();
FileName.value = F1.value;
}
}
</script>
</head>
<body>
<form name="frm1" method="POST" enctype="multipart/form-data">
<input type="file" id="F1" name="F1" size="20" style="display:none">
<input type="text" name="FileName" size="20">
<input type="button" value="TEST" name="B1" onclick="test()">
</form>
</body>
</html>