Contents

Views 7021 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

큐 형식의 배열 사용 샘플..

<html>
<head>
<title>JS test</title>

<script>
var map = new Array();

function view(){
    while(map.length>0){
        v = map.shift() + "<br>";
        document.write( v );
    }
}

function add(){
    form = document.manage;

    if(form.memo.value!="")
    {
        map.push( form.memo.value );
        form.memo.value = "";
        form.memo.focus();
    }
    return false;
}

</script>

</head>

<body>

<form name=manage onSubmit="return add();">
    <input type=text name=memo>
    <input type=button value=ADD onClick="add();">
    <input type=button value=VIEW onClick="view();">
</form>

<script> document.manage.memo.focus(); </script>

</body>

</html>


?

List of Articles
No. Category Subject Author Date Views
777 Develop [linux] CentOS Apache 웹서버에 HTTPS 적용 hooni 2015.10.23 794
776 System/OS [linux] CentOS Apache Httpd에 https 적용 hooni 2014.03.05 4485
775 System/OS [linux] CentOS 6.x Cati 설치 (yum) hooni 2014.01.17 48596
774 System/OS [linux] CentOS 6.5 에서 "Bringing up interface eth0: Determining if ip address 121.78.127.197 is already in use for device eth0..." hooni 2014.04.05 4862
773 System/OS [linux] awk 명령어 hooni 2014.03.11 4959
772 System/OS [linux] APM(apache, php, mysql) + gd 설치순서.. hooni 2003.04.23 18854
771 System/OS [linux] apache, php, jsp 환경설정하기.. hooni 2003.04.23 15246
770 System/OS [linux] /etc/fstab 설정 방법.. ㅋㅋ hooni 2013.04.23 12086
769 Etc [link] 유용한 사이트 링크. hooni 2013.08.19 71474
768 Etc [link] iOS(아이폰) 개발 관련 ㅋㅋ hooni 2013.04.23 21507
767 Develop [lego] 세그웨이 이것만 볼것.. ㅎㅎ file hooni 2013.04.23 33538
766 Develop [kotlin] 코틀린 안드로이드 앱 버전/빌드 정보 hooni 2020.12.15 831
Board Pagination Prev 1 ... 29 30 31 32 33 34 35 36 37 38 ... 98 Next
/ 98