SóProvas


ID
118666
Banca
FCC
Órgão
TRT - 20ª REGIÃO (SE)
Ano
2010
Provas
Disciplina
Programação
Assuntos

No JavaScript, a caixa de mensagem "Confirm"

Alternativas
Comentários
  • JavaScript has three kind of popup boxes: Alert box, Confirm box, and Prompt box.

     

    An alert box is often used if you want to make sure information comes through to the user. When an alert box pops up, the user will have to click "OK" to proceed.

     

    A confirm box is often used if you want the user to verify or accept something. When a confirm box pops up, the user will have to click either "OK" or "Cancel" to proceed. If the user clicks "OK", the box returns true. If the user clicks "Cancel", the box returns false.

     

    A prompt box is often used if you want the user to input a value before entering a page. When a prompt box pops up, the user will have to click either "OK" or "Cancel" to proceed after entering an input value. If the user clicks "OK" the box returns the input value. If the user clicks "Cancel" the box returns null.

     

    FONTE: http://www.w3schools.com/js/js_popup.asp

  • e-

     

    'confirm' nao permite text input; é um prompt que aguarda resposta do usuario e.g.: ok, cancel, yes, no etc