vendredi 26 mars 2021

Write something in href without affecting the path of html file

i'm new in Web Development and creating a website. There i get data from the Movie Database API, especially the id. Now i want if you click on a movie, another page should load and the Details are displayed. Currently i am passing the ID this way:

MovieDetails.html#{id}

Is there a better way to pass the id other than localstorage? Is there a way to do something like this MovieDetails.html-{id}




Aucun commentaire:

Enregistrer un commentaire