Click here to Skip to main content
15,891,372 members

Comments by Anshu Krishna (Top 1 by date)

Anshu Krishna 12-Jun-13 19:19pm View    
I am sorry that I didn't notice the Yes/No criteria.
But that can very easily be rectified.
If you have seen the example then you might have noticed that kConfirm() does return a reference to the buttons.
So just by adding 2 line after line 4 like:

4. var c = kConfirm("Demo kConfirm\nPlease click a button");
5. c.ok.innerHTML = "Yes";
6. c.cancel.innerHTML = "No";
you can solve that problem too.

And as far as the matter of 3 years is concerned, giving an answer here does not just mean that it will only help the person who is asking it.
If some other person in future is in the same situation then this discussion can be very helpful too him.

I am giving this solution despite all the other 22 solutions because I believe it is easier and better suited. And the idea can even be used for other similar problems with little modifications.

Please try to be more constructive here.
This is CodeProject not YouTube.