Image editor | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Image editor

Iam working on an image editor using html and css filters and JavaScripts 1- how can i add a browse button to get the image from the device 2 - how can i output the image after editing

17th May 2019, 6:52 PM
Hassan Alkholy
Hassan Alkholy - avatar
2 Answers
+ 1
Use an input type file like this: <input type="file" id="myFile"> <button onclick="myFunction()">browse</button> And get it by getElementById in Javascript like this: function myFunction() { var x = document.getElementById("myFile"); }
18th May 2019, 11:56 AM
Mia380 - avatar
Thanks but i dont think this will open the browse window to get the image
18th May 2019, 3:07 PM
Hassan Alkholy
Hassan Alkholy - avatar