Welcome to WebmasterServe!

FREE TO JOIN! Join us now to engage in informative and friendly discussions about Webmastering, SEO, SEM, Internet Marketing, Programming, Graphic Design, Online Jobs and more. What are you waiting for? Ready to join our friendly community? It takes just one minute to register.

Dismiss Notice

Join WebmasterServe Forums 
Join the discussion! Have a better idea or an opinion? It takes just one minute to register Click Here to Join

Help Me/Question What Is The Use Of Alert() And Prompt() Functions?

Discussion in 'Javascript and jQuery' started by Doominic anderson, Feb 17, 2016.

  1. Doominic anderson

    Yellow Belt

    Joined:
    Jan 30, 2016
    Messages:
    399
    Ratings:
    +21 / -0
    In JavaScript there are two types of functions, functions with parameters and functions without parameter.
    Functions with parameters contain parameters in the parenthesis,such as integer and strings, the value of members of these functions can be changed at runtime by passing different values of their parameters.
    What is the use of alert() and prompt() functions?
     
  2. karthikaqpt

    karthikaqpt New Member

    Joined:
    Dec 23, 2015
    Messages:
    11
    Ratings:
    +0 / -0
    Alert() is used to information comes through to the user.
    window.alert("sometext");
    Prompt() helps user to input a value before entering a page
    window.prompt("sometext","defaultText");
     

Share This Page