JeroenDortmans
Technical User
What I want is simple. I have a form with a "Delete" button. When this button is clicked a message box appears which a yes / No button. When yes is clicked a page which runs the "Delete" query must be opened. I have almost finished the code, except for the part where the page with the "Delete" query must be opened. The "Delete" query page must be opened in the same browser and the same e frame. Who can help me?
<script language="VBScript">
Sub DeleteButton_onClick
Button = MsgBox ("Weet U zeker dat deze record verwijderd mag worden?", vbYesNo + vbQuestion + vbDefaultButton1, "Verwijder record!"
If Button = vbYes Then
open "test.asp"
End If
End Sub
</script>
<input type="button" name="DeleteButton" value="Delete!" style="font-weight: bold">
<script language="VBScript">
Sub DeleteButton_onClick
Button = MsgBox ("Weet U zeker dat deze record verwijderd mag worden?", vbYesNo + vbQuestion + vbDefaultButton1, "Verwijder record!"
If Button = vbYes Then
open "test.asp"
End If
End Sub
</script>
<input type="button" name="DeleteButton" value="Delete!" style="font-weight: bold">