I'm currently using an API which returns a lot of data and I want to be able to send the user to another page when they click on a name. Here's my Javascript:
const name = pokemon.name;
<a href="./${name}.html"> ${name} </a>
Where ${name}
varies according to the name of the Pokemon.
The problem is that I want to create one HTML file with the same structure with the same Pokemon but different info. I know that it's possible because I have seen other sites with "/pokemonName"
at the end of the URL in the address bar.
Edit : I'm using vanilla JS and the API is PokeApi