www.webdeveloper.com
Results 1 to 4 of 4

Thread: "ok" and "cancel " buttons

  1. #1
    Join Date
    Mar 2003
    Posts
    3

    "ok" and "cancel " buttons

    how can i put the "ok" and "cancel " buttons on an alert message?

    Please Help Me!!!

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,123
    prompt('text to be displayed','');
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

  3. #3
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    10,413
    Originally posted by Khalid Ali
    prompt('text to be displayed','');
    There is also the confirm() method:


    <script type="text/javascript"><!--
    if(confirm("Here is my question")){
    &nbsp;alert("My question is OK!");
    } else {
    &nbsp;alert("You cancelled my question!");
    }
    //--></script>


    [J]ona
    Visit Slightly Remarkable to see my portfolio, resumé, and consulting rates.

  4. #4
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,123
    Jona is correct, there are 2 options for you to choose from..
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles