Forum Moderators: open

Message Too Old, No Replies

How to delay a JS?

         

Fryman

7:23 am on Apr 15, 2005 (gmt 0)

10+ Year Member



I have this code

<script language="javascript" src="http://somesite.com/gateway.aspx?productid=3333&val=3333"></script>

I want it to wait for 5 seconds before loding, how can I do that?

orion_rus

11:41 am on Apr 15, 2005 (gmt 0)

10+ Year Member



Try to move your code into a function in this js, and make setTimeout(thisfunction(),5000) all should work great
Good luck to you!