Create an HTML page with JavaScript that you can upload the image from PC and display on the page. Also, display the Path of the image on the PC.
Thank you,
LoadImage.html
<html>
<head>
<meta charset="utf-8">
<title>Loading
Image...</title>
</head>
<body>
<img id="image"
src="C://Users//AKSHAY//Desktop//virat.jpg" width="1080"
height="720" />
<script
type="text/javascript">
var
image1=document.createElement("img")
image1.onload=function(){
image.src=this.src
}
setTimeout(function(){
image1.src="C://Users//AKSHAY//Desktop//virat.jpg";
},1000)
</script>
</body>
</html>
Output
Get Answers For Free
Most questions answered within 1 hours.