Dialog Boxes

Dialog Boxes

The modal dialog box is a frame inside. The modal dialog box is a frame inside a web page with two options "OK" and "Cancel" and a close icon at the top right corner.
A modal dialog box consists of the following components:-

  • modal_container
  • modal_header(modal_title)
  • modal_body
  • modal_footer

To display a dialog box to dispplay a warning or an error message, use the alert() built-in function in Javascript
For example, alert("Are you sure to want to exit?");
A alert box consists of two things. A message which is displayed a stext in the dialog box and an ok button on the bottom right corner of the dialog box.

prompt() function:

To add a response from the client, we add a prompt("<message>","OK","No"); function.

Comments

Popular posts from this blog

Parallel Database design, query processing

Laravel | PHP | Basics | Part 2

Apache Hadoop | Running MapReduce Jobs