How can I put an input in the alert() box?

You can’t put anything in an alert box. As the name indicates, it’s an alert. You might be looking for a prompt which has an input text field, or confirm to get a true / false depending on user selection.

let foo = prompt('Type here');
let bar = confirm('Confirm or deny');
console.log(foo, bar);

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)