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
45trick_js_thankswindow.html
45trick_js_thankswindow.html
<!DOCTYPE HTML> <html lang="hr"> <head> <meta charset="UTF-8"> <title>JS open form values in new window</title> <script><!-- function new_window(){ prozor=window.open("","","directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=350"); prozor.resizeTo(600,400); prozor.location.href="./thanks.html"; prozor.focus(); } --></script> </head> <body> When you submit this form new 'thank you' window will open. <form action="" method="POST" enctype="multipart/form-data"> Your name: <input type="Text" name="ime"> <br>email: <input type="Text" name="emajl"> <br><input type="Submit" value="Potvrdi" onClick="new_window()"> <input type="Reset"> </form> </body> </html>
Reload page
Preview
W3C validation
Edit Code