A simple HTML + JavaScript project that demonstrates how to submit a form and display the result in a new browser window or tab.
You can view the project here: https://github.com/hasibulpolok/js-form-new-window
js-form-new-window
│
├── index.html
├── script.js
└── README.md
Example concept:
<form action="result.html" target="_blank">
<input type="text" placeholder="Name">
<input type="email" placeholder="Email">
<input type="password" placeholder="Password">
<button type="submit">Submit</button>
</form>
Using target="_blank" allows the form submission to open in a new tab or window depending on browser settings. ([Stack Overflow][1])
git clone https://github.com/hasibulpolok/js-form-new-window.git
Open the project folder.
Run the file:
index.html
in your browser.
Coding Progress 🟩🟩🟩🟩🟩🟩⬜⬜⬜⬜ 60%
This project is useful for beginners who want to learn: