JavaScript Tutorial in Hindi for Beginners [Part 13] - Alert, Confirm, and Prompt in JavaScript
In this video i will talk about Alert, Confirm, and Prompt dialogs in JavaScript Functions to interact with the user: alert, prompt and confirm. 1. alert() - shows a message. 2. prompt() - shows a message, input text. It returns the text on ok or, if Cancel button or Esc is clicked, null. 3. confirm() - shows a message, confirm with “OK” or “Cancel”. It returns true for OK and false for Cancel/Esc.