Want to create delay in javascript for loop like sleep or wait function note:- setTimeout() not working for(var start = 1; start < 10; start++) { //wait for some minute }
Define 'not working' -- and note, javascript is single threaded and single instance, so hanging scripting like that will hang the entire browser... to the point that if you are waiting MINUTES the browser will actually throw an error if you don't release execution. That's why you should set a timeout event in the first place! So scripting can release execution back to the browser.
Why not create a layer over the page with css and then create a setTimeout function to remove the layer after a set amount of seconds?