Last Post

NOTE: Forum is available ijdigital.com




Results 1 to 2 of 2

Thread: Confirm box ( javascript )

  1. #1
    Power Girl chitika's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    17,231
    Thanks
    1,017
    Thanked 16,273 Times in 6,187 Posts
    Rep Power
    30

    Default Confirm box ( javascript )

    Code:
    <html>
    <head>
    <script type="text/javascript">
    function disp_confirm()
    {
    var r=confirm("Press a button");
    if (r==true)
      {
      document.write("You pressed OK!");
      }
    else
      {
      document.write("You pressed Cancel!");
      }
    }
    </script>
    </head>
    <body>
    
    <input type="button" onclick="disp_confirm()" value="Display a confirm box" />
    
    </body>
    </html>

  2. The Following 2 Users Say Thank You to chitika For This Useful Post:

    djrich (11-23-2008), nicknick (11-23-2008)

  3. #2
    Corporal
    Join Date
    Apr 2010
    Location
    The Loft
    Posts
    46
    Thanks
    12
    Thanked 31 Times in 10 Posts
    Rep Power
    0

    Default


  4. The Following User Says Thank You to spankie For This Useful Post:

    ingkrysnsabens (11-05-2012)

Similar Threads

  1. [GET] JavaScript Patterns
    By lonly in forum IT Books
    Replies: 0
    Last Post: 09-28-2010, 11:40 AM
  2. [ask] decoding Javascript
    By jmb1881 in forum Sharing point
    Replies: 8
    Last Post: 01-02-2010, 04:29 AM
  3. 3000 Javascript
    By sai in forum Sharing point
    Replies: 0
    Last Post: 05-04-2009, 06:18 PM
  4. [ASK] Can You Unscramble This Javascript?
    By 101Man in forum Sharing point
    Replies: 4
    Last Post: 10-05-2008, 07:47 PM
  5. Making Use Of JavaScript
    By chitika in forum IT Books
    Replies: 0
    Last Post: 01-20-2008, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT. The time now is 05:13 PM.

eXTReMe Tracker