title: Count values with after close window javascript
body: <p>I have images:</p>
  
  <pre><code>&lt;img src=""&gt;
  &lt;img src=""&gt;
  &lt;img src=""&gt;
  </code></pre>
  
  <p>I need add same data i don't know how to add name="1" or name="0" or something similar. And if I close window show me alert with return to same page and information counted if name ==0 show alert.</p>