+ 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 ответов
+ 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
Mia380 - avatar
0
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