����������
WEB - ������

www.spravkaweb.ru Rambler's Top100
 ï¿½ï¿½ ����������: �������/JavaScript/������ window.������ � ������Ðàñïå÷àòàòü 
�������
�������
����� ���
HTML
JavaScript
VBScript
CSS
Flash
Perl
PHP
MySQL
SSI
VRML
�������������
������
Download
�����
��������
������
�������� ���
�����:
��������
Subscribe.Ru:

JavaScript

<--����� | ��������� � ������ | ������-->
������ window
������ � ������
������� ����������� ����������� �� ��������� �������� ������������� ������� � ������� ����.

������ �����, ��������� �������������� ������������ ������ open. �� ��������� Web-��������� ������� �� ������ �������������� ���� Web-������������ � ��������� � ���� �����-���� �������� - ����� �������� �������� ��� ���������� ������� ��������������� ������.
var contentsWindow;
contentsWindow = window.open("https://www.somesite.ru/contents.htm","contents");
� ���� ������� �� ������� ����� ����, ��������� � ���� ����� Web-�������� � ��������� �� ��� contents. ����� open ������ ������ �� ������ ����� ���������� ����, ������� �� ����� ������������ ������������ ��� ������ � ���� �����:
contentsWindow.Left = 300;
��� ���� ����� ������������ � �������� TARGET ���� <A>:
<A href="https://www.somesite.ru/contents2.htm"
target="contents">����������</A>
����� ������������ �������������� �������� ����, ����� ����� ��������� ��� ����������������. ��������, �� ����� ����� ����� ������ � ����� ������������ ���� ������ ������������ � ������ ���������:
contentsWindow = window.open("https://www.somesite.ru/contents.htm",
"contents", "toolbar=no", "status=no");
�� ����� ������ ��������� ���������� � ������� ������������ ����:
contentsWindow = window.open("https://www.somesite.ru/contents.htm",
"contents", "top=100", "left=200", "width=400", height="200");
� ��� ������ ����� �������� ������ � NN ������ 4.06 ��� ����� �������:
contentsWindow = window.open("https://www.somesite.ru/contents.htm",
"contents", "screenY=100", "screenX=200", "outerWidth=400",
outerHeight="200");
����� �������� ���� ���������� ���� ������, ��� ����� ������� ��� ������ ������ close. �������� closed �������� � ���������� ���������, ������� �� ��� ���� (��������, ���� ��� ������� ������������):
contentsWindow.close;
if(contentsWindow.closed) . . .
�������� status ��������� ��������� � ������ ��������� �����-���� �����, �������� �� ������ �� ���������:
window.status = "���������� WEB - ������";
� �������� defaultStatus �������� ����� ������ ������� ���� ����� �� ���������:
window.status = window.defaultStatus;
�� ����� ������ ����� ����������� ������ � �������������, ��������� ��� ���������� ��������������� ������. ����� alert ������� �� ����� ���� �������������� � �������� ������� � ������� ��:
window.alert("������!!!");



����� confirm ���������� ���� ��������� � ������� � �������� �� � ������. ���� ������������ ����� ��, ������������ true, ����� - false.
if(window.confirm("�������� ���-������.")) alert("�� ������ ��");
else alert("�� ������ ������");


����� prompt ��������� ��������� � ������������ �����-���� ������. �� ������� ���������� ���� � ����� ����� � �������� �� � ������. � �������� ���������� ����������� ����� ����������� � �������������� ����� �� ���������, ������������ � ���� �����:
string=window.prompt("������ ������������� ������ prompt:", "������� ���-������");
alert(string);
�� ���������� ����� ��������� ������� "JavaScript � Web-�������"
www.bhv.ru, www.bhv.kiev.ua
������ / � ����������
 
��� ������:
05.07.2004
  • � ������� PHP ��������� ��������� ������� ��� ������ � ���������� (���������� GD):
    imagetypes(), ...
  • � ������� JavaScript ��������� �������� �� ����� D, E, F, H, I
  • � ������� ������ ��������� ������, �������������� ��� �������� � html-�������� ��������� MS Office (Word, Excel � �.�.)
  • �����������:
    ���� ������ � �����:
    ������ �����!
    ����������.
    ��� ����.
    ��� ��� �����.
    ������.
    ���� �� �����!
    ��������:
    Rambler's Top100
    Ñäåëàòü ñòðàíèöó ñòàðòîâîé ������� �������� ���������
    Äîáàâèòü ñòðàíèöó â èçáðàííîå �������� ���� � ���������
    Ñîîáùèòü îá íàéäåííîé îøèáêå �������� �� ������