Gowri A

Gowri A

  • NA
  • 54
  • 46.7k

how to raise click event withour clicking on button in js

Sep 10 2015 9:24 AM
hi ,
 
From C# i'm call javascript function which shows the confirmation msg with okie and cancel buttons.  Here is the script. So when i click on okie i want to raise click event without clicking on button. Please help me.
 
<script type="text/javascript">
function myfunction() {
var result = window.confirm("Effective Date is Changed. Do you want to search the details under this date??");
if (result) {
   alert("Okie");
  // raise button click without clicking on button 
}
else {
   alert("Cancel");
}
}
</script>
 
 

Answers (1)