confirm box

Results 1 to 2 of 2

Thread: confirm box

  1. #1
    mi Guest

    Default confirm box

    Hi everyone,<BR><BR>I like to know can ASP appear a confirm box notifies visitors and allows them to cancel the action. if yes, what is the code?<BR><BR>have a good day!!

  2. #2
    Join Date
    Dec 1969

    Default RE: confirm box

    Well, ASP can&#039t, but you can with client-side code (remember, ASP is server-side code, all ASP code is processed BEFORE the client receives any HTML).<BR><BR>Here is how you can do it with client-side JavaScript:<BR><BR>&#060;SCRIPT LANGUAGE=JavaScript><BR>if (confirm("Do you like cheese?"))<BR>{<BR>//Do whatever, he likes cheese<BR>} else {<BR>//This person is the devil; they don&#039t like cheese<BR>}<BR><BR>Hope that helps! Happy Programming!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts