.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Yes/No button in Javascript alert box

Posted By: priya     Posted Date: September 13, 2011    Points:5   Category :ASP.Net
Is it possible to have Yes/No button instead of ok/cancel in javascript alert message box?

Thanks
Priya

Responses
Author: Narayanan             
Posted Date: September 14, 2011     Points: 20   

Hi,
Try this
http://www.codingforums.com/showthread.php?t=129473

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: Narayanan             
Posted Date: September 14, 2011     Points: 20   

Hi,
Try this
http://www.codingforums.com/showthread.php?t=129473

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: ANWER JAMAL             
Posted Date: September 17, 2011     Points: 20   

<script language="javascript" type="text/javascript">
function validate()
{
var r=confirm("Are you sure to send SMS");
if (r==true)
{
return true;
}
else
{
return false;
}
}
</script>
<asp:Button ID="btnSendSms" Text="Send SMS" runat="server" OnClientClick="return validate()" OnClick="btnSendSms_Click" />

Author: Sasi Prabhu             
Posted Date: September 18, 2011     Points: 20   


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend