function test(){ method1(); // i want to force delay here method2(); } function Method1() { // do somthing ! } function method2() { // do somthing ! }
function test() { Method1(); setTimeout(function () { Method2(); }, 2000); return false; } function Method1() { alert('This is Method 1'); } function Method2() { alert('This is Method 2'); }
function test(){ method1(); // i want to force delay here setTimeout(function() { Method2() },500) //Set delay time for method 2 appearence } function Method1() { // do somthing ! } function method2() { // do somthing ! }
setTimeout(function() { your second _func(); }, 15000);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)