I want to click on the link on the first page, it goes to the second page and does the JS function, which is to show only what belongs to the sport of the link
I want to click the link on the first page and go to the second one and activate js in the second one by the click of the first page
I thought of something with anchor but I did not find a solution
this is page 1
<div>
<ul id="Menu1">
<li class="Esporte"><a href="Pagina2.html"><p>Futebol</p></a></li>
<li class="Esporte"><a href="Pagina2.html"><p>Basquete</p></a></li>
<li class="Esporte"><a href="Pagina2.html"><p>Outros</p></a></li>
</ul>
</div>
Page 2
<div class='Modalidade'> <p class='Esporte1'> Futebol </p></div>
<div class='Modalidade'> <p class='Esporte1'> Basquete </p></div>
<div class='Modalidade'> <p class='Esporte1'> Outros </p></div>
JS
$('#Menu1 .Esporte').click(function(){
var Esportes = $(this).text();
$('.Modalidade').hide();
$('.Modalidade .Esporte1:contains(' + Esportes + ')').parent().show();
});