Javascript - Problems with Loop with Array -
Javascript - Problems with Loop with Array - i have next code when working correctly should open link 1 in iframe, wait 3 seconds, open link 2 in iframe, wait 3 seconds, etc.. currently it's skipping straight lastly value in array (the lastly link). any js expert takers? <html> <head></head> <body> <a href="http://www.google.com">google</a><br /> <a href="http://www.thinkgeek.com">thinkgeek</a><br /> <a href="http://www.themetapicture.com">the meta picture</a> <iframe src="http://www.google.com" id="myid" name="main" width="1024" height="768"> </iframe> <script> function getlinksarray() { (var = 0; < document.links.length; i++) { var linx = document.links[i].href; // create closure each loop iteration (function(linx) { settimeout(function() ...