You need to sign in to do that
Don't have an account?
Radhika 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
<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
<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>