Change an image dynamically using the FileUpload Control

Ddd
Posted by Ddd under JavaScript category on | Points: 40 | Views : 3076
<html>
<body>
<form>
<input type="file" id="f1" onchange="changeimage()"/>
<img id="im1" height="200" width="200"/>
</form>
<script>
function changeimage()
{
document.getElementById("im1").src=document.getElementById("f1").value;

}
</script>
</body>
</html>

Comments or Responses

Login to post response