arrays - Javascript open a new page(one or many), wait for it to load, then close it -


I am writing an application that can thread "collision" on a website at a specific interval. The application looks at many input boxes and if the value is in each, then the window to load this window. Open command does. It then closes the page. The problem I am running is that after every execution there is no way to stop me for loop so that the page never loads before it closes. any idea? Here's the code.

  & lt; Html lang = "en" xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" /> & Lt; Title & gt; Reopen & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Input id = "Bump0" type = "text" /> gt; & Lt; Br / & gt; & Lt; Input id = "bump1" type = "text" /> gt; & Lt; Br / & gt; & Lt; Input id = "Bump2" type = "text" /> gt; & Lt; Br / & gt; & Lt; Input id = "bump3" type = "text" /> gt; & Lt; Br / & gt; & Lt; Input id = "bump 4" type = "text" /> gt; & Lt; Br / & gt; & Lt; Input id = "bump5" type = "text" /> gt; & Lt; Br / & gt; & Lt; Input id = "bump 6" type = "text" /> gt; & Lt; Br / & gt; & Lt; Input id = "bump 7" type = "text" /> gt; & Lt; Br / & gt; & Lt; Input type = "button" id = "btnStartReoccure" value = "start" onclick = "fncSetInterval ()" /> & Lt; Br / & gt; & Lt; Br / & gt; If checked, then & lt; Input type = "checkbox" id = "chxReoccure" /> & Lt; / Body & gt; & Lt; / Html & gt; & Lt; Script type = "text / javascript" & gt; Function fncSetInterval () {// warning ("set interval X" + x); I = 14410000; // 4 hours and some extra var bumpsValue = new array; (X = 0; x & lt; 8; x ++) {if (document.getElementById ("Bump" + x) .value == faucet || document.getElementById ("Bump" + x) .value == " ") {                 break; } Bunds Value [x] = document.getElementById ("tP" + ​​x). Values; Window [x] = window.open ("http://www.somewebpage.com/bump.php?t=" + bumpsValue [x]); } Window.setInterval (function () {fncRunReOccur ()}, i); } Function fncRunReOccur () {// var RecURL = document.getElementById ("ReoccuranceURL"). Values; //alert("document.getElementById.value "+ (document.getElementById (" chxReoccure ").) Is checked; if (document.getElementById (" chxReoccure "). Checkeded == true) {}} function fncSleep ( Millis, callback) {setTimeout (function () {callback ()}}, millis)}}  


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -