how to add form field in alert in javascript code example
Example 1: js prompt
var answer = prompt('What is your name?','Joe Blogg');
Example 2: js alerts
3 types of JS Alerts
- Information : You can only accept.
- Confirmation: You can accept or decline.
- Prompt : You can accept, decline, and/or sendKeys.