Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running JavaScript witnin VB Script

Status
Not open for further replies.

Cranger

Programmer
Apr 4, 2001
54
US
I am trying to use Javascript to prompt a Confirm Message within an ASP. Is this possible to do? I am relatively new to VB Script and ASP coding so I am not sure I can even do this. I have tried 2 approaches.

1. When they press the Delete on my form I put a ONCLICK on my link. This pointed to a JavaScript Function which prompts the Confirm. This works, but I can not get VB Script to recognize whether the result from the Confirm is True or False.

2. I tried to play the JavaScript Confirm within an IF block of VBScript. It was not getting recognized. Can anyone help me?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top