Forum

Different Types Of Pop-up Boxes In JavaScript

This thread contains 2 replies, has 3 voices, and was last updated by RAHUL KEDIA 2 months, 1 week ago.

  • Author Replies
    • #62628

      What are the different types of pop-up boxes available in JavaScript? Explain them.


    • #62629

      There are three types of pop-up boxes available in JavaScript:

      Alert – it just displays a message with an OK button.
      Confirm – it pops up a confirmation message window with the OK and Cancels buttons.
      Prompt – it pops up a dialog box asking user input followed confirmation buttons.


    • #111564

      In JavaScript, there are three types of pop-up boxes:

      Alert Box: Displays a message and an OK button. It’s used to ensure the user gets the information. Example: alert(“This is an alert box!”);
      Confirm Box: Displays a message, an OK button, and a Cancel button. It’s used to get user confirmation. Example: confirm(“Are you sure you want to proceed?”);
      Prompt Box: Displays a message, a text input field, an OK button, and a Cancel button. It’s used to get user input. Example: prompt(“Please enter your name:”);


Viewing 2 reply threads

You must be to reply to this thread.Please or . Registration is 100% free.

GET FREE CONSULTATION

Call Us Now For Free Consultation97370 05566

Our experts listen to you patiently and suggest you the right course after conducting a personality profile test. Register your interest below to schedule personality profile test for you.

SUBSCRIBE TO OUR NEWSLETTER

Subscribe to get latest updates regarding courses, IT industry and career prospects.

Copyright 2016-2024 Smart Mentors. All Rights Reserved.

Login

FORGOT PASSWORD

Sign up now to Become An Instructor

    Register your Interest

      cf7captchaRegenerate Captcha