Home  >  Article  >  Web Front-end  >  Introduction to alert and confirm functions_javascript skills

Introduction to alert and confirm functions_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:47:351295browse

alert is a common method of the window object in JavaScript script language. It only prompts a dialog box and has no cancellation function.

confirm is a method in JavaScript language. It pops up a dialog box for cancellation and confirmation. Confirm Returns true, cancels and returns false; usually used with the button's Onclientclick event.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn