There is a function that changes the value of the id block to "block", initially it is hidden, the value is none
function show(p) { document.getElementById("p").style.display = "block"; } The problem is that the value changes, if instead of p you directly write an id block ("name2"), can you somehow transfer it to a function and use it safely?
Function call itself
<p onclick="show("name2")">ΠΡΠΈΠΌΠ΅Ρ ΡΠ΅ΠΊΡΡΠ°</p>