davegimo

Untitled

Jan 21st, 2020
116
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var linkArray = [];
  2. linkArray.push("http://example.com/downloadablefile1");
  3. linkArray.push("http://example.com/downloadablefile2");
  4. linkArray.push("http://example.com/downloadablefile3");    
  5.  
  6. function (linkArray) {
  7.   for (var i = 0; i < linkArray.length; i++) {
  8.     setTimeout(function (path) { window.location = path; }, 200 + i * 200, linkArray[i]);
  9.   }        
  10. };
RAW Paste Data