Tag Archives: alert

Javascript: User interaction – alert, prompt and confirm

Javascript provides some basic UI methods which are very useful in basics UI operations: alert prompt confirm ALERT: Syntax: alert(message) This method accepts one argument. It outputs a window with the message and stops execution until visitor presses “OK” button. PROMPT: This method accepts two arguments. Syntax: var result = prompt(text[, default]); It outputs a… Read More »