Syntax: alert("sometext") Confirm Box 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



Yüklə 44,5 Kb.
tarix07.11.2018
ölçüsü44,5 Kb.
#78671

Alert 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.



Syntax:

alert("sometext")



Confirm Box


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.

Syntax:


confirm("sometext")



Prompt Box


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.

Syntax:


prompt("sometext","defaultvalue")

Prompt Box

















onsubmit="return validate_form(this)"

method="post">

Email:







Yüklə 44,5 Kb.

Dostları ilə paylaş:




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2022
rəhbərliyinə müraciət

    Ana səhifə