Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java thread: How to determine which button is pressed?


Message #1 by Edward <zhangsc@n...> on Fri, 17 May 2002 13:11:45 +0800
--0-1764346488-1021715077=:68823
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit


<HTML>
<HEAD>
<SCRIPT LANGUAGE='JavaScript'>
 function doSubmit(mode)
 {
  if(mode=='1')
  {
   document.forms[ 0 ].action='ServletName';
   document.forms[ 0]. submit();
  }
  else
  if(mode=='0')
   window.close();
 }
</Script>
</HEAD>

<BODY>
 <form name='f' method='Post'>
  <input type='button' name='okay' value='Submit' onclick='doSubmit("1")'>
  <input type='button' name='no' value='Cancel' onclick='doSubmit("0")'>
 </form>
</BODY>
</HTML>




---------------------------------
Do You Yahoo!?
Get personalised at My Yahoo!.

  Return to Index