I'm trying to get the file path of an imported image in html5. My current HTML code is as followed:
<!DOCTYPE HTML>
<html>
<head>
<title>example.com</title>
<link rel="stylesheet" type="text/css" href="Index.css">
</head>
<body>
<h1>Example.com</h1>
<p>Import image: <input type="file" accept="image/x-png" onclick="importImage()" id="importImg"></p>
<script src="JS.js"></script>
</body>
</html>
I dont have any JS code yet as i have literraly no idea how to do it Also no css as i just started this project, but i dont think thats essentiall