title: Ping list of ip addresses using Javascript
body: <p>I have a list of ip addresses to ping and would like to use Java script to do that. </p>
  
  <p>I tried as the following but there is no output when I clicked the "Test" button.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Test&lt;/title&gt;
  
  &lt;script&gt;
  function myFunction()
  {
  var myStringArray = [ "10.100.200.133", "10.10.22.0" ];
  len=myStringArray.length
  for (var i=0; len=myStringArray.length; i&lt;len; i++) {
      check=ping(i)
      if $check Then
          document.write("ip"+ i + "is up")
      else
          document.write("ip"+ i + "is down")
  }
  }
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;button onclick="myFunction()"&gt;Test&lt;/button&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>