I am taking input using window.prompt. There are three prompt one after another. I want to make every prompt box required like we do in form fields. Is there any way to achieve that facility in javascript?
I think you can inspire from below code for every prompt:
let input = prompt('Do something?');
if (input === null || input.trim() === "") {
// execute certain action
}