Try below
<script language="JavaScript">
function fun2()
{
// do your stuff here
}
function fun1()
{
// do your stuff here
window.setTimeout('fun2()'
}
</script>
<body>
<script language="JavaScript">
fun1();
</script>
</body>
I call fun1() and after 5000 (5seconds), fun2() will be run.
hongjun
Main Topics
Browse All Topics





by: T-RexPosted on 2002-12-29 at 02:09:08ID: 7641465
setTimeout('action()',2000 );
2000 is two seconds
Greetz,
T-Rex