Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: confirm message box


Message #1 by "Fotopoulos, Lefteris" <LFot@e...> on Fri, 6 Oct 2000 10:23:37 +0300
This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C02F69.7E608460
Content-Type: text/plain;
	charset="windows-1253"
Content-Transfer-Encoding: quoted-printable

1.  Use the onClick event for the checkbox.
2.  Check the checkbox "checked" property.
3.  Popup your confirm box and assign a value to the confirm statement.
4.  Using the value from your confirm box, use an if statement to 
trigger form.submit if true.

Short of actually writing the code for you (which teaches you nothing) 
there is your function.

Michael
  ----- Original Message -----
  From: Fotopoulos, Lefteris
  To: javascript
  Sent: Friday, October 06, 2000 3:23 AM
  Subject: [javascript] confirm message box


  Hi all,
  how can i do this?
  i have a form with a checkbox. If this checkbox is checked, then i 
want to display a confirm messagebox. If the user hits OK then the form 
should be submitted else reseted. I know it's pretty easy but i can't 
find the answer.
  thanks
$subst('Email.Unsub')



  Return to Index