�͹���س������Դ Browser ����� �ѹ�����ҧ����Դ˹�ҵ�ҧ����� 1 ˹��
����������鹷�� Startup Page �ͧ�س�������Ѻ
������Ըա�÷������ҷ���ش㹡�����ҧ window object
��ǹ�Ë����� window �����Դ�����ʹ��Ҥس�ѧ����͡�ҡ�����仫С�͹
����ͤس ����� http://www.sanook.com ŧ� Site �������᷹��� (replace)
Startup page �ͧ�س ����ѧ����˹�ҵ�ҧ��� ���§������¹ document ��ҹ��
���㹢�з��س��� net ��Թ� ���ص���ҹ�ͧ����Ң��� page ���Ό �س����Դ˹�ҵ�ҧ����
���� Ctrl-n �������� ����͡ New window � pull-down menu ��������ͧ replace site
���س���ѧ仪����� ��㹡����¹ Homepage ��Ҥ������������Դ˹�ҵ�ҧ�ͧ����� ��ԧ�����Ѻ
� JavaScript ���� methods �����㹡���Դ�Դ˹�ҵ�ҧ���� ��� open() �Ѻ close()
����� open ��������Ѻ�Դ window �������� ���Ը���ѧ����Ѻ
variable=open(url,name,[option])
variable ���ͪ��͵���÷��������¡��� window ��� �س��ͧ��駪�������ѹ��Ѻ
url ���� URL �ͧ document �����Դ� window
[option] �繡�á�˹��ѡɳТͧ window ������������Ѻ
name ���Ҩ������� target �ͧ tag <a> ��� <form> �����Ѻ
��ǹ close() ���� ���� variable ��ʹ��� .close() �����
������ҧ������ҧ window ����
exam=window.open("http://www.sanook.com","sanook")
�Դ���¤���觹���Ѻ
exam.close()
(�Դ˹�ҵ�ҧ sanook ����͹��)
���ҧ option 㹡���Դ˹�ҵ�ҧ��Ѻ
| Option | ��ҷ������ | Description |
| toolbar | yes no | �� toolbar ������� |
| location | yes no | �ʴ� location ������� |
| directories | yes no | �� directory button ������� |
| status | yes no | �� statusbar ������� |
| menubar | yes no | �� menubar ������� |
| scrollbar | yes no | �� scrollbar ������� |
| resizeable | yes no | ����,Ŵ��Ҵ�ͧ window ��������� |
| width | integer | �������ҧ�ͧ window �˹��� pixel |
| height | integer | �����٧�ͧ window �˹��� pixel |
| outerWidth | integer | Outer width �ͧ window |
| outerHeight | integer | Outer height �ͧ window |
| left | integer | ���зҧ�ҡ �ͺ���¢ͧ˹�Ҩ� |
| top | integer | ���зҧ�ҡ �ͺ���ͧ˹�Ҩ� |
| alwayRaised | yes no | Creatw a raise,floating window. |
| z-lock | yes no | Create a window which stays in background. |
*** �س���� 1 ��� 0 ᷹ yes ��� no ����Ф�Ѻ ***
������ҧ����� Option ��Ѻ
test1=window.open("http://www.sanook.com","sanook","toolbar=0")
test2=window.open("http://www.sanook.com","sanook","toolbar=1 menubar=0 scrollbar=0")
test3=window.open("http://www.sanook.com","sanook","toolbar=1 width=300 height=300")
Comunicating
With the