16,005,038 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.