Nitish Khobragade
Home
Contact
Services
About
Whatsapp
Method Examples
Explore examples of different methods used in JavaScript.
Method Name
alert() - displays the alert box containing message with ok button.
confirm() - displays the confirm dialog box containing message with ok and cancel button.
prompt() - displays a dialog box to get input from the user.
open() - opens the new window.
close() - closes the current window.
setTimeout() - performs action after specified time like calling function, evaluating expressions etc.