<html>
<head>
<title></title>
<script>
function checkFile(file)
{
 alert(file.value);
 file.outerHTML = file.outerHTML;
}
</script>
</head>
<body>

 <form>
   <input type="text" name="txtName"><br>
   <input type="file" name="file"><br>
   <input type="button" value=삭제 onclick="checkFile(file);">
   <input type="button" value=확인 onclick="alert(this.form.upload.value);">

</form>
</body>
</html> 

- 되지만 outerHTML에 대해서 조사를 해야 할 것 같음


+ Recent posts