![]() Programmers can check that a non-null value was received before processing it. Clicking OK returns the current (default or user supplied) input value, while clicking Cancel returns null. The prompt dialog contains an OK and Cancel button. Here is some example JavaScript code that prompts the user for his/her name: var name = prompt("Please enter your name", "Bill Smith")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |