Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 806
  • Last Modified:

"javascript: return confirm('Are you sure ?');"

Hi Experts,
I am using the "javascript: return confirm('Are you sure ?');"
to get the confirmation from user.That is fine.The pop up has buttons 'Ok' and 'Cancel'.
Instead of 'Ok',I want to show 'Yes'.
What should be changed?
Johny Bravo
Johny Bravo
1 Solution

It is not possible to changes the default confirm button in javascript.

Instead i suggestion you can used your custom confirm box.

Below link will help you in custom confirm box.

Hope this will solve your problem.
Johny BravoAuthor Commented:
Hmmm well  it need to be modified as if it seems that there is no other way.
Thanks for your comment.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now