1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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 New Member

    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

Share This Page