Question

Create an HTML page with JavaScript that you can upload the image from PC and display...

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,

Homework Answers

Answer #1

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

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Please Use Javascript and HTML 1) Greeter Create an page with an input, and a button....
Please Use Javascript and HTML 1) Greeter Create an page with an input, and a button. When the button is clicked, output the phrase "Hello {Name}" to the developer console, with {Name} being the value the user put into the input field. Use a function that takes the name as an argument, and returns the full phrase as its output.
Write the below code to use HTML and JavaScript. 1)Write a JavaScript program to create a...
Write the below code to use HTML and JavaScript. 1)Write a JavaScript program to create a new string from a given string changing the position of first and last characters. The string length must be greater than or equal to 1. 2)Write a JavaScript program to check whether a string starts with 'Java' and false otherwise
5 -​Create a web page that contains JavaScript code as discussed in class. ​Your page should...
5 -​Create a web page that contains JavaScript code as discussed in class. ​Your page should use the defaults for color, font face and font size. ​Count the numbers from 1 to 50. Skip 1 blank space between each value. You must use a ​for() loop
Use visual studio code to write the javascript programme. For this lab you must use a...
Use visual studio code to write the javascript programme. For this lab you must use a reasonable faceted search example, each item must have at least three categorical attributes and at least one numeric attribute. Attributes such as ID, name etc do not count as categorical or numeric attributes. (a) Define a class for your item that meets the above three categorical and one numeric attribute requirements. (b) Create a text file that contains at least 5 such records in...
(javascript/css/html) Follow these steps to implement the following browser-based puzzle game: 1. Get a photo of...
(javascript/css/html) Follow these steps to implement the following browser-based puzzle game: 1. Get a photo of yourself and save it as an image file 2. Use a image-splitting program such as splitter.imageonline.co to break the image into 9 roughly equal parts (3 x 3). Save those files in a directory 3. Write Javascript that takes these nine images and randomly rearranges them in a 3 x 3 grid. 4. Each cell in the grid will also have a checkbox. 5....
Please linked both files. For this assignment you need to create a ToDo list using Javascript,...
Please linked both files. For this assignment you need to create a ToDo list using Javascript, along with HTML and CSS. Begin by creating a HTML page called todo.html. Then create a Javascript file called todo.js and link it in to the HTML page using a script tag. All Javascript for the assignment must be in the separate file. (For CSS, feel free to include styles in a style block at the top of the HTML page, or to link...
Use visual studio code to write the javascript programme. For this lab you must use a...
Use visual studio code to write the javascript programme. For this lab you must use a reasonable faceted search example, each item must have at least three categorical attributes and at least one numeric attribute. Attributes such as ID, name etc do not count as categorical or numeric attributes. (a) Define a class for your item that meets the above three categorical and one numeric attribute requirements. (b) Create a text file that contains at least 5 such records in...
Write a JavaScript program to create a new string from a given string changing the position...
Write a JavaScript program to create a new string from a given string changing the position of first and last characters. The string length must be greater than or equal to 1. it has to be in (HTML)
You must implement a dynamic webpage the provides a basic task-list functionality. In particular, you page...
You must implement a dynamic webpage the provides a basic task-list functionality. In particular, you page should provide a user an interface to add and remove a task as well as mark a task as completed. For this version of the assignment, the tasks will be added directly in the HTML page by manipulating the DOM. Moreover, you should maintain an array that stores task details. Each task comprise of three fields: task-title: which is a one-line description of the...
For this question, you will create a drawing that you should upload as an image. (1...
For this question, you will create a drawing that you should upload as an image. (1 bonus point will be awarded for neat and clear images that do not show more than the requested information.) Imagine a haploid eukaryotic cell with a genome consisting of two unique chromosomes. The cell enters the cell cycle and divides by mitosis. Its daughters also enter the cell cycle and divide by mitosis to create granddaughter cells. 1) Draw the original cell in the...