2013-12-31
展开全部
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=gbk">
<title></title>
<script>
function fileTest()
{
alert(document.myform.file1.value);
}
</script>
</head>
<body>
<form name="myform">
<input name="file1" type="file">
<input type="button" value="确定" onClick="fileTest()">
</form>
</body>
</html>
<head>
<meta http-equiv="content-type" content="text/html;charset=gbk">
<title></title>
<script>
function fileTest()
{
alert(document.myform.file1.value);
}
</script>
</head>
<body>
<form name="myform">
<input name="file1" type="file">
<input type="button" value="确定" onClick="fileTest()">
</form>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询