Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 801
  • 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.

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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