Search
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Codes Author
Fri, 24-Oct-2014 Authors
All Time Authors
Satyapriyanayak
12160
Vishal@Neeraj
8240
Jayakumars
8120

Latest members | More ...


(Statistics delayed by 5 minutes)
 Codes

Change an image dynamically using the FileUpload Control

Ddd
Posted by Ddd under JavaScript on 1/27/2011 5:32:39 AM | Points: 40 | Views : 2742 | Status : [Member]

<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>


dinesh k.
Found interesting? Add this to:



Comments or Responses


Login to post response