In short I need to time delay the launch of a javascript. My challenge is that I have to ad companies, each serving up popunders. I am allowed by their TOS to lauch a popunder from each of them on the same page, but they can't lauch at the same time. My goal is to time delay the launch of one of the popunders for 10 seconds. I have searched this forum many times, but I am not sure I even know what to search for. I have tried Javascript timeouts and other things, but to no avail. Anyway, the popunder code that I want to delay is a javascript. So should I use something like Ajax, Mootools, or something else? Can I use javascript to timedelay another javascript? I am going to be using this on the proxified page of a Glype proxy. I am not sure if that would make a difference or not. But I am ok with code, if someone can help me figure out how to do it in a regular web page, I can probably get it to work in the proxified page. I am sure you all are busy, so I would like to say thank you in advance. MAtt
You can use setTimeout: setTimeout([function that creates the popunder], [time you want to wait in milliseconds]); Code (markup):
ok, I tried this, but it just gives me an error on the page, and the popunder does not pop. <script> setTimeout(src="http://cds.adecn.com/add/script.js?v=2.2;siteId=62682;spotId=6989;width=720;height=300;method=popAd", 1000); </script> Code (markup): What am I missing? Thanks.