title: Change every time the content of a javascript, in a "while"?
body: <p>I need help with some javascripts.<BR>
  I am using this --> <a href="https://stackoverflow.com/questions/11542822/javascript-onclick-createelement-div-viz-popup-box">javascript onclick create(element) div viz popup box</a>
  and i use it in a <strong>php page</strong>, inside a while.<BR>
  The problem is when i use <br></p>
  
  <pre><code>&lt;div id="test" class="popup"&gt;
  </code></pre>
  
  <p>because everytime of cause i make it print "test" to my javascript. </p>
  
  <pre><code>    function openPopup() 
  {
      document.getElementById('test').style.display = 'block';
  }
  </code></pre>
  
  <p>and it takes always the first line i make it print, and it forgets of all the others.
  How can i use something to make each line different from the others?</p>