Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. can i change the captions of 'ok' and 'cancel' buttons of window.confrim message in javascript?

can i change the captions of 'ok' and 'cancel' buttons of window.confrim message in javascript?

Scheduled Pinned Locked Moved ASP.NET
javascriptquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hi_everybody
    wrote on last edited by
    #1

    hi, i am new in javascript. i want to change the caption of ok and cancel button of confirm message to yes no is it possible? if not please tell me another function through which i can do that....

    B A 2 Replies Last reply
    0
    • H hi_everybody

      hi, i am new in javascript. i want to change the caption of ok and cancel button of confirm message to yes no is it possible? if not please tell me another function through which i can do that....

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      Its not possible to change the style of javascript confirm box.Either you can make your own custom usercontrol for that or can use vbscript for this but this will work only in IE. Go through the link

      Cheers!! Brij

      1 Reply Last reply
      0
      • H hi_everybody

        hi, i am new in javascript. i want to change the caption of ok and cancel button of confirm message to yes no is it possible? if not please tell me another function through which i can do that....

        A Offline
        A Offline
        Anurag Gandhi
        wrote on last edited by
        #3

        You can use Asp.Net Ajax Modal popup or any other model popup control for your purpose. Unfortunately, with javascript confirm you cannot achieve "Yes" and "No" instead of "Ok" and "Cancel".

        Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.

        H 1 Reply Last reply
        0
        • A Anurag Gandhi

          You can use Asp.Net Ajax Modal popup or any other model popup control for your purpose. Unfortunately, with javascript confirm you cannot achieve "Yes" and "No" instead of "Ok" and "Cancel".

          Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.

          H Offline
          H Offline
          hi_everybody
          wrote on last edited by
          #4

          ok thanks for the information...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups