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_bak
06file.html
06file.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> <title>HTML obrasci -primjer</title> <script type="text/javascript" language="JavaScript"> function ispis(){ var x=document.forms[0].fajl.value; alert("Izabrali ste fajl: \n"+x); } </script> </head> <body bgcolor="yellow"> <form action="javascript: ispis()" method="POST"> file: <input type="file" name="fajl" size="50"> <br><input type="Submit" value="Potvrdi"> <input type="Reset"> </form> <br><br><br><br> Source code gornjeg primjera izgleda ovako: <table width="95%" border="2" cellspacing="2" cellpadding="2" align="CENTER" valign="MIDDLE" bordercolor="green"> <tr bgcolor="Silver"> <td width="50"> <xmp> <html> <head> <title>HTML obrasci -primjer</title> <script type="text/javascript" language="JavaScript"> function ispis(){ var x=document.forms[0].fajl.value; alert("Izabrali ste fajl: \n"+x); } </script> </head> <body bgcolor="yellow"> <form action="javascript: ispis()" method="POST"> file: <input type="file" name="fajl" size="50"> <br><input type="Submit" value="Potvrdi"> <input type="Reset"> </form> </body> </html> </xmp> </td> </tr> </table> </body> </html>
Reload page
Preview
W3C validation
Edit Code