Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • From: javascript@xxxxxxxxxx (anand)
  • Subject: [Javascript] Invoke onclick event of one button from clicking a second button
  • Date: Fri, 13 Sep 2002 07:10:36 +0530

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C25AF4.A8D13C40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

  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





------=_NextPart_000_0000_01C25AF4.A8D13C40
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40"; xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word"><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3DWord.Document name=3DProgId>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<META content=3D"Microsoft Word 10" name=3DOriginator><LINK=20
href=3D"cid:filelist.xml@xxxxxxxxxxxxxxxxx"; rel=3DFile-List><!--[if gte =
mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:UseFELayout/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<STYLE>@font-face {
	font-family: PMingLiU;
}
@font-face {
	font-family: \@PMingLiU;
}
P.MsoNormal {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: PMingLiU
}
LI.MsoNormal {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: PMingLiU
}
DIV.MsoNormal {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: PMingLiU
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: =
personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; =
mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; =
mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.SpellE {
	mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
	mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
	page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=3DEN-US link=3Dblue style=3D"tab-interval: 36.0pt" =
vLink=3Dpurple>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  class=3D820143701-13092002>hi</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN =
class=3D820143701-13092002>one=20
  simple solution is the following one</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  class=3D820143701-13092002></SPAN></FONT>&nbsp;</P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  =
class=3D820143701-13092002>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;script&gt;=
<BR>function=20
  aClick()<BR>{<BR>&nbsp;alert("A Clicked");<BR>}<BR>function=20
  =
bClick()<BR>{<BR>&nbsp;aClick();<BR>}<BR>&lt;/script&gt;<BR>&lt;/head&gt;=
<BR>&lt;body&gt;<BR>&lt;form=20
  name=3D"aform" method=3D"post"&gt;<BR>&lt;input type=3D"button" =
name=3D"abutton"=20
  onclick=3D"aClick()"&nbsp; value=3D"Abutton"&gt;<BR>&nbsp;&lt;br&gt; =
<BR>&lt;input=20
  type=3D"button"&nbsp; name=3D"bbutton" onclick=3D"bClick()"=20
  value=3D"Bbutton"&gt;<BR>&lt;/form&gt;<BR>&lt;/body&gt;&nbsp;=20
  <BR>&lt;/html&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  class=3D820143701-13092002></SPAN></FONT>&nbsp;</P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  class=3D820143701-13092002>HTH</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  class=3D820143701-13092002></SPAN></FONT>&nbsp;</P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  class=3D820143701-13092002>Mohan<BR></P></SPAN></FONT>
  <P class=3DMsoNormal>&nbsp;</P></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0000_01C25AF4.A8D13C40--