Toggle navigation
Genres
Frontend (2)
JavaScript (6)
Database (2)
Linux Server (3)
Web Apps (4)
Misc (4)
Search
List
New Tutorials
Last Modified Tutorials
</>
Code examples
code
smiko
frontend
html
examples
forms
43passvars_js_file.html
43passvars_js_file.html
<!DOCTYPE HTML> <html lang="hr"> <head> <meta charset="UTF-8"> <title>JS open form values in new window</title> <script><!-- function ispis(){ var x=document.forms[0].fajl.value; alert("You choose fajl: \n"+x); } --></script> </head> <body> <form action="javascript:ispis()" method="POST" enctype="multipart/form-data"> file: <input type="file" name="fajl" size="50"> <br> <br> <input type="submit" value="Open filename in alert"> <input type="reset" value="Reset the form"> </form> </body> </html>
Reload page
Preview
W3C validation
Edit Code