javascript - How to create a dialog with “Ok” and “Cancel” options

Опубликовано: 04 Март 2023
на канале: Code Samples
325
5

#short
#javascript
#dialog
I am going to make a button to take an action and save the data into a database.
Once the user clicks on the button, I want a JavaScript alert to offer “yes” and “cancel” options. If the user selects “yes”, the data will be inserted into the database, otherwise no action will be taken.
How do I display such a dialog?
confirm(): https://developer.mozilla.org/en-US/d...


Смотрите видео javascript - How to create a dialog with “Ok” and “Cancel” options онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Code Samples 04 Март 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 325 раз и оно понравилось 5 людям.