teblack
Programmer
- Apr 30, 2004
- 45
I have a asp page that has a "DELETE" button on it. I currently have a confirm message box showing via the onclick using javascript. What I would like to do is have the onclick check a session variable, and then based on that variable use one of two confirm messages i.e.(see example below). I have attempted this a couple of times but have not had any luck, so I wanted to make sure that it could even be done.
Code:
onclick="javascript: if session("xyz") confirm("message 1") else confirm("message 2")
[\code]
Any help with this would be greatly appreciated.
Thanks
TBlack -