��� ����: ����� ����� / ����� 3 / �� 7
 


������ �� ��� �- JavaScript
 


���� ������ ��:
1: ��� �- DOM?
2: ���� ������ ������
3: ����� ������
4: �������
5: ������� �����
6: ���� ������� �����
7: ���� ������
8: ������ ��� ������
9: ��� ����� �- DOM
10: ������� ���� ������
11: ��� ����� �������
12: ���� �� ������
13: ����� ����� 3
|
|
|
|
|
|
|
|
|
|
|
|
|
|

����� 3

�� 7: ������� �� ���� ������.

���� �� ����� ��� �� ��� ������� ���, ����� ���� �� ������ ����� ������ ����.

�� �� ����� ������?
���� ����� ������ ����?

��� ���� ���� ����� ������:

<a href="#" onMouseOver="window.status='Monkeys!';return true;">Who do we love?</a>

�����: "���� ����� ���� ��� �����, ��� �� ���� ������ �����".


���������� �� ������

����� ��������� ����������, �� �� ������. ������ �� ������� ��������� ���� ����. ������, ���� ���� ���� ����� ������ ������: window.open("URL","name","fratures"). ����� �� ���� �� JavaScript ������ �� ����� open �� ������� ���� Window � ������ ���� ���.

���, ��� ������ ����, ������ �� ������� ������ ����� ����� ��� ������ ������� �� �������: �� ��������, �����, ��� �� ������. ����� ������ ��� �������, ���� ����� �"� �������, ���� ������ �� �������� ������� �����. �� �� ������ ��� �� ����� �����, ����� ����� �� ��������. ����, ���� �� ��?

var italic_hippy = hippy_monkey.italics();

�� ��, ������� �� ��������� �����, �- ()italics ��� ����� �� �������� String.

��� ���� ������� ������ ������� �� �������� Window, �� �� ���� ���. ����� ������� �������� �"� alert �- prompt �� ����� ������ �� ������� Window. �� �����:

window.alert("Viva la primate!");

���� ����� ����� ������ "!Viva la primate". ����� ������� ���� �����:

alert("Viva la primate!");

��� ������ ����, ��� ��������� window, ��� �������� �����, ���� ���� ����� �� ���� ���. ������� ��� �- ("open("URL","name","featues ���� ����� �� ���� ����.

��� �� ����� �� �� ������� �� �������� Windows ���, ��� �� �� ��� �����: focus �- blur. ����� focus, ����� ���� ����� ����� �"� ������ ����� ������ ����. ����� blur ���� �� ���� � ������ ���� ������ �� ������ ������ �����. ���� �����, blur �- focus �� ������ �� ����� Internet Explorer 3.0 ���� �� Netscape 2.0 ����. ���� ���, �� ��� ����� ���� �� ������, ���� ���� ���� �����.

�� ���� ��� ����� ������ �� ����� ���� �� ��� ����. �� ��� ������ �- blur ��- focus �������, ���� ���� ���� ������ �� ������� �� ������ �����.

���� ������ ���

��� ��� «--

 
       
       
   
 
 

���� ����
����� �����
����� �����
����� ������
����� ���
��� ����