I have a index.html
file with multiple tags <a>
o href
of all of them point to the same file, detalhe.html
. In this file detalhe.html
I have tags of <image>
, <ul><li>
, <iframe>
, <h3>
, etc.
The point is that the content of these tags must be dynamic, ie depending on which <a>
tag of the index.html
file has been clicked, the content of detalhe.html
must be different. Imagine a list of movies, clicking on each movie opens the file detalhe.html
that contains the details of that movie (Genre, Duration, Director, Trailer, etc.).
I know that to modify an element the path is getElementById
but how to do this based on the <a>
tag that called the HTML file?