using confirm of javascript
ASP.NET
3
Posts
2
Posters
0
Views
1
Watching
-
Hello, I m using the confirm function of javascript.however i have a requirement that i want to execute a few lines of code when some1 clicks on ok and another set of lines when some1 clicks on cancel.how to do it. Thanx, chitranjan more dash than cash!!!
-
Hello, I m using the confirm function of javascript.however i have a requirement that i want to execute a few lines of code when some1 clicks on ok and another set of lines when some1 clicks on cancel.how to do it. Thanx, chitranjan more dash than cash!!!
-
Just use it in an if statement:
if (confirm('Go to hell?')) { document.location = 'www.hell.com'; } else { document.location = 'www.heaven.com'; }
--- b { font-weight: normal; }Thanx for the help more dash than cash!!!