Results 1 to 4 of 4

Thread: alerts

  1. #1
    kirang75 Guest

    Default alerts

    I need to throw an alert with a message and two options buttons (yes & no). If they press yes, it has to go one asp page and if it is no, it has to go another asp page. Could you please tell me how can I write this in JScript. <BR><BR>Thanks in advance <BR>Kiran

  2. #2
    David Moran Guest

    Default RE: alerts

    Try this javascript:<BR>function selectPage {<BR> if(confirm("click yes for page1 or cancel for page2"){<BR> response.redirect "page1.asp"<BR> return<BR> }<BR> response.redirect "page2.asp"<BR>}<BR>

  3. #3
    kirang75 Guest

    Default RE: alerts

    Where should I write my message to display on the alert?<BR>

  4. #4
    Mike Shaffer Guest

    Default RE: alerts

    Uhhh... where it says:<BR><BR>"click yes for page1 or cancel for page2"<BR><BR>;-)

Posting Permissions

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