js-form-new-window

JS Form New Window

A simple HTML + JavaScript project that demonstrates how to submit a form and display the result in a new browser window or tab.

🚀 Live Demo

You can view the project here: https://github.com/hasibulpolok/js-form-new-window


📌 Features


🛠️ Technologies Used


📂 Project Structure

js-form-new-window
│
├── index.html
├── script.js
└── README.md

📋 How It Works

  1. User fills the form (Name, Email, Password).
  2. JavaScript validates the form fields.
  3. When the form is submitted, the result opens in a new browser window.

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])


▶️ How to Run

  1. Clone the repository
git clone https://github.com/hasibulpolok/js-form-new-window.git
  1. Open the project folder.

  2. Run the file:

index.html

in your browser.


Coding Progress 🟩🟩🟩🟩🟩🟩⬜⬜⬜⬜ 60%

🎯 Learning Purpose

This project is useful for beginners who want to learn: