본문 바로가기

Programing/JavaScript

[JavaScript] 시간 지연 함수, 일정 시간 뒤 실행시키기, SetTimeout() {}

출처



setTimeout(function() {
alert('http://webisfree.com');
}, 3000);
/* 3초 뒤에 경고창으로 해당문구를 출력함 */