SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Oct 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    yes/no type box in html/javascript

    do we have yes/no type of box unlike alert/confirm box with ok/cancel buttons in javascript?

    thanks in advance..

  2. #2
    SitePoint Guru SSJ's Avatar
    Join Date
    Jan 2007
    Posts
    830
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes we do have..

    Visit this:
    http://www.javascriptkit.com/javatutors/vbalert.shtml

    Hope this helps..

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    If you don't want to resort to using vbscript, the common practice is to rephrase the question so that OK/Cancel makes sense.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  4. #4
    SitePoint Member
    Join Date
    Oct 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SSJ View Post
    Yes we do have..

    Visit this:
    http://www.javascriptkit.com/javatutors/vbalert.shtml

    Hope this helps..
    Thanks you
    The link u gave customised vbalerts but i want to use java scripts.
    .so please help me

  5. #5
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,629
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    There is no JS function or command that will do what you ask.

    A workaround might be to make a (hidden) DIV that contains YES and NO buttons, and then use JS to show the DIV and look at the onclick events of the buttons.
    Ian Anderson
    www.siteguru.co.uk


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
  •