�t���[�����܂����Ńt�H�[���ɓ��͂��ꂽ�f�[�^��lj��^�폜����


������u���E�U�@�y IE:4.0�@ NN:3.0�z
Internet Explorer Netscape Navigator DreamPassport iCab
3.0x 4.0x 4.5 5.0x 5.5 2.0x 3.0x 4.0x 4.x 6.0 2 3 2.x
Windows �~ �� - �� �� �~ �� �� �� �� - �~ -
Macintosh �~ �� �� �� - �~ �� �� �� �� - - ��
UNIX - - - - - �~ �� �� �� �� - - -
Dreamcast - - - - - - - - - - �~ �~ -

�|�C���g for (i=0; i<document.myFORM.mySEL.options.length; i++) document.myFORM.mySEL.options[i] = null; for (i=0; i<nameList.length; i++) document.myFORM.mySEL.options[i] = new Option(nameList[i],nameList[i]);
���@�@�� �f�[�^��lj��^�폜���\������ɂ͓o�^���Ƀf�[�^��z��Ɋi�[���Ă����܂��B�폜���͔z����ɂ���f�[�^�Ɠ��͕�������v���邩�ǂ������ׂĈ�v���Ȃ��ꍇ�̂ݐV�����z��Ƀf�[�^�����Ă����܂��B�V�����z�񂩂猳�̃f�[�^���i�[���ꂽ�z��Ƀf�[�^���R�s�[����Γ���̃f�[�^���폜����܂��B�t���[�������ɕ\�����邽�߂ɔz����̃f�[�^���t�H�[���̃Z���N�g���j���[���ڂɍ폜��ɒlj����Ă����܂��B�폜��option���ڂ�null�������܂��B�lj���new Option()���g���܂��B
�T���v�� <html> <head> <title>�t���[�����܂����Ńt�H�[���ɓ��͂��ꂽ�f�[�^��lj��^�폜����</title> </head> <body> <form> <input type="button" value="ABC����" onClick="parent.rightFrame.setData('ABC')"> <input type="button" value="DEF����" onClick="parent.rightFrame.setData('DEF')"> <input type="button" value="GHI����" onClick="parent.rightFrame.setData('GHI')"> <input type="button" value="JKL����" onClick="parent.rightFrame.setData('JKL')"> </form> </body> </html>
�⑫���� ���t���[���Ƀf�[�^��n���ɂ͂����‚����@������܂����Z�L�����e�B�̓s���ŊȒP�Ƀt���[�����̃I�u�W�F�N�g�����삵�ɂ����Ȃ��Ă��Ă��܂��B����h���C�����łȂ��ƃf�[�^�̎󂯓n���͂ł��܂���B �t���[�������̃y�[�W���̓��e�͈ȉ��̒ʂ�ł��B ���t���[�������y�[�W <html> <head> <title>�t���[�����܂����Ńt�H�[���ɓ��͂��ꂽ�f�[�^��lj��^�폜����</title> <frameset cols="20%,*"> <frame src="code_left.html"> <frame src="code_right.html" name="rightFrame"> </frameset> </head> </html> �������̃y�[�W(code_left.html) <html> <head> <title>�t���[�����܂����Ńt�H�[���ɓ��͂��ꂽ�f�[�^��lj��^�폜����</title> </head> <body> <form> <input type="button" value="ABC����" onClick="parent.rightFrame.setData('ABC')"> <input type="button" value="DEF����" onClick="parent.rightFrame.setData('DEF')"> <input type="button" value="GHI����" onClick="parent.rightFrame.setData('GHI')"> <input type="button" value="JKL����" onClick="parent.rightFrame.setData('JKL')"> </form> </body> </html> ���E���̃y�[�W(code_right.html) <html> <head> <title>�t���[�����܂����Ńt�H�[���ɓ��͂��ꂽ�f�[�^��lj��^�폜����</title> <script language="JavaScript"><!-- nameList = new Array(); tempList = new Array(); ptr = 0; function setData(userName) { nameList[ptr++] = userName; for (i=0; i<document.myFORM.mySEL.options.length; i++) document.myFORM.mySEL.options[i] = null; for (i=0; i<nameList.length; i++) document.myFORM.mySEL.options[i] = new Option(nameList[i],nameList[i]); } function clrData() { n = document.myFORM.mySEL.selectedIndex; text = document.myFORM.mySEL.options[n].value; cnt = 0; for (i=0; i<ptr; i++) { if (text != nameList[i]) tempList[cnt++] = nameList[i]; } nameList.length = 0; if (cnt > 0) for (i=0; i<cnt; i++) nameList[i] = tempList[i]; ptr = cnt; for (i=0; i<document.myFORM.mySEL.options.length; i++) document.myFORM.mySEL.options[i] = null; for (i=0; i<nameList.length; i++) document.myFORM.mySEL.options[i] = new Option(nameList[i],nameList[i]); } // --></script> </head> <body> �lj��^�폜���ꂽ�f�[�^���\������܂��B <form name="myFORM"> <select multiple name="mySEL" style="width:100pt"> <option></option> </select> <br> <input type="button" value="�폜" onClick="clrData()"> </form> </body> </html>

���T���v���X�N���v�g�����s����@>>���s
���e�u���E�U�ł̓��쌋�ʂ�����@>>View!

�ʐ^�f�� PIXTA