[Javascript] Invoke onclick event of one button from clicking a second button

anand anandkan at vsnl.net
Thu Sep 12 20:40:36 CDT 2002


  hi

  one simple solution is the following one



  <html>
  <head>
  <script>
  function aClick()
  {
   alert("A Clicked");
  }
  function bClick()
  {
   aClick();
  }
  </script>
  </head>
  <body>
  <form name="aform" method="post">
  <input type="button" name="abutton" onclick="aClick()"  value="Abutton">
   <br> 
  <input type="button"  name="bbutton" onclick="bClick()" value="Bbutton">
  </form>
  </body>  
  </html>



  HTH



  Mohan




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20020913/2699574a/attachment.htm>


More information about the Javascript mailing list