
how to get full path of a file type in javascript?

<html>
<script>
function show() {
document.getElementById("frame").href = document.getElementById("myfile").value;
var theexa=document.getElementById("frame").href.replace("file:///","");
alert(document.getElementById("frame").href.replace("file:///",""));
}
</script>
</head>
<body>
<form method="get" action="#" >
<input type="file" id="myfile" onChange="javascript:show();" size="30">
<br>
<a href="#" id="frame"></a>
</form>
</body>
</html>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.