I have a FORM-A which has a list of records populated from the database.
Clicking on each record will open FORM-B which provides more details of
the selected record. FORM-B has two buttons "Edit" and "Delete".
When the user clicks "Delete", it should show FORM-B in the background and
popup an alert window asking if the user is sure he wantes to delete or
not. If the user clicks "Yes" it goes to another page saying "Delete
successful" otherwise if the user click "No" it stays in the same page
(with FORM-B) without making any change. How do I do this. Would
appreciate if someone send me a sample code since I am fairly new to
Javascript.
Do I have to make the Edit and Delete buttons of type submit or just
button. Right now I set it to submit. Pls advice.
Thanks in advance
Femy