function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Radhika pawar 5Radhika pawar 5 

Check Bellow code ,In that i want to Yes No button ,this are rename to No and cancel Button

<html>
<head>
<script type="text/javascript">
<!--
function getConfirmation(){
   var retVal = confirm("Do you want to continue ?");
   if( retVal == true ){
      alert("User wants to continue!");
   return true;
   }else{
      alert("User does not want to continue!");
   return false;
   }
}
//-->
</script>
</head>
<body>
<p>Click the following button to see the result: </p>
<form>
<input type="button" value="Click Me" onclick="getConfirmation();" />
</form>
</body>
</html>

Outputbox:OK and cancel button but i want yes ,no Button label

Plz guide me 
'I m new in jquery...........................

Thank you 
Radhika pawar
CheyneCheyne
You cannot change the button labels in standard javascript alert dialogs, but there are plenty of third party libraries that you can use, such as jQuery UI (http://jqueryui.com/dialog/#modal-confirmation" target="_blank) and alertifyjs (http://fabien-d.github.io/alertify.js/" target="_blank). Alertifyjs is no longer maintained, but it works very well, and it is lightweight. Here's an example of how you could modify your code to use alertifyjs (you'll need to first download alertifyjs and add alertify.min.js, alertify.core.css, and alertify.default.css as static resources). 

<html>
<head>
<apex:stylesheet value="{!$Resource.alertifycore}"/>
<apex:stylesheet value="{!$Resource.alertifydefault}"/>
<apex:includeScript value="{!$Resource.alertifyjs}"/>

<script type="text/javascript">
<!--
function getConfirmation(){
   var message = "Do you want to continue?";
   alertify.set({ labels: {
          ok     : "Yes",
          cancel : "No"
    } });
    alertify.confirm(message, function(e) {
        if (e) {
            alertify.alert('User wants to continue!');
        } else {
            alertify.alert('User does not want to continue!');
        }
     });

}
//-->
</script>
</head>
<body>
<p>Click the following button to see the result: </p>
<form>
<input type="button" value="Click Me" onclick="getConfirmation();" />
</form>
</body>
</html>