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