title: dynamic link with javascript
body: <p>During my searching on this topic, I would like to have some help.</p>
  
  <p>In my web page, I would like to build a HREF link that redirects in a precise web page depends to the current month.</p>
  
  <p>My link is :</p>
  
  <pre><code>&lt;td&gt;&lt;a href="/comptes/mon_compte.html?display=affilies_periode&amp;id=${vendeur.id}&amp;  month=javascript:monthNumber"&gt;Détails pour le mois en cours&lt;/a&gt;&lt;/td&gt;
  </code></pre>
  
  <p>And my code in JS :</p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
      date1 = new Date();
      document.write("&lt;p&gt;date1&lt;/p&gt;");
      monthNumber = date1.getMonth();
      document.write("&lt;p&gt;monthNumber&lt;/p&gt;");
  &lt;/script&gt;
  </code></pre>
  
  <p>with the result of month, I would like to make the query dynamic like this :</p>
  
  <pre><code>http://localhost:8080/comptes/mon_compte.html?display=affilies_periode&amp;id=2&amp;***month=javascript:monthNumber***
  </code></pre>
  
  <p>Please, could you give me a piece of advice?</p>
  
  <p>Ale.</p>