How will you create a modal dialog with two buttons "Ok" and "Cancel" to ask user if he/she is sure to delete the item?
Explanation
The Window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel. Example:

if (confirm("Sure to delete item?") {
      function(){} // delete item
   }

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты