Javascript Prompt (OK, Cancel)

Results 1 to 2 of 2

Thread: Javascript Prompt (OK, Cancel)

  1. #1
    Join Date
    Dec 1969

    Default Javascript Prompt (OK, Cancel)

    Hi,<BR>How do I write a Javascript prompt with OK, Cancel options like in VB. And is there any way to check they clicked OK or Cancel.<BR><BR>Thanks,<BR>vikki

  2. #2
    E! Guest

    Default RE: Javascript Prompt (OK, Cancel)

    There are 3 types of dialogs in js... Alert(), confirm(), and prompt()... Confirm has the OK and CANCEL... The do return a value...<BR><BR>var a msg...<BR>if (confirm((msg))<BR> something...<BR>else<BR> something else...

Posting Permissions

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