User Confirms Form Submit

[Total: 0    Average: 0/5]

This shows how to confirm the submission of a form.

Head Code:

function question()
  var _ret = true;
  var msg = "  Are  you sure you want to continue?" + 
       " nYou will be permanetly changing this file." 
  if (!confirm(msg)) 
    _ret = false;
  return (_ret);

Body Code:

<Form action="" method="post" Onsubmit="return question()"> 
     <input type="text" name="t1" value="some data">
 <Input Type="submit" Value="Submit" >

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *