albertkao 12 Junior Poster in Training

I like to have a sleep or delay function in javascript.
The Prototype library 1.6.1 has a delay function.
It is working well in Firefox or Chrome but not IE 7 on windows XP.
Please help (I cannot use newer version of windows).

function sleep()
{
}

sleep.delay(0.1);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.