Conformation message box in Javascript

Discussion in 'JavaScript and AJAX' started by unni krishnan.r, May 13, 2010.

  1. unni krishnan.r

    unni krishnan.r Member

    Joined:
    Apr 20, 2010
    Messages:
    206
    Likes Received:
    3
    Trophy Points:
    18
    Occupation:
    education
    Location:
    Kerala
    Home Page:
    http://blogofunni.blogspot.com

    Introduction



    The javascript alert is a dialogue box that pops up and takes the faces away from current window and focus to read message

    Why is it helpful



    * if we closes a page without saving we often saw a message
    *You can add message to user eg "NOT FOR MINORS"
    *An error message
    *Conformation message
    Code:
    <html>
    <body>
    <form>
    <input type="button" onclick="alert('Your message eg:-FOR MINORS')" value="Click here">
    </form>
    </body>
    </html>
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,367
    Likes Received:
    386
    Trophy Points:
    83

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice