Organization of dialogue with a visitor to a web resource can be performed in various ways, of which using the JavaScript alert () function is the easiest and fastest option. This option is especially good for testing purposes, but it is used as a natural functionality on many resources.
The JavaScript alert () function provides an affirmative answer. In fact, the important thing is not the answer, but the fact of information output. Moreover, the web resource ceases to function until the user responds. There is always one answer to alert - this is the answer!
In order to debug JavaScript, alert () is an ideal tool that allows you to quickly get relevant information, make a decision and continue to work. But for the normal functioning of the site, he also has a fair amount of advantages.
Visitor Attention Fixation
"" - , , . .
. : , , , :
. , , . - .
, . :
- JavaScript alert & document cookie
- ===
- « » & « -».
- , . : «» , .
, .
, , , . . - , .
:
- , , .
, . . JavaScript alert() - . , , / .
, , , , , .
, alert JavaScript
AJAX . , , .
- (div), innerHTML - , .
, - JavaScript alert. Window , , . - , - .
HTML - . , , - . - , , .
- , - , , , .
JavaScript alert(' ') , , , , .
. ( ) , DOM. .
, , , .
. JavaScript : . , - - . .
If something does not happen, it means: not somewhere, something is wrong, but only in front of this place.