The question is not exact - I apologize.

It is necessary that when you click on a link in the menu in the same window, for example, information about the site will appear.

Prompted to use anchor (#). The menu is built in php and added to the html page.

    2 answers 2

    If quite rude, then:

    <script> function showTab(n) { var p = document.getElementsByTagName('p'); for(var i = 0, pl = p.length; i < pl; ++i) { if(i == n) p[i].style.display = 'block'; else if(/(\b|\s)?tab(\b|\s)?/.test(p[i].className)) p[i].style.display = 'none'; } return false; } </script> <a href="#" onClick="return showTab(0);">Ссылка 1</a> <a href="#" onClick="return showTab(1);">Ссылка 2</a> <p class="tab" style="display:none">Таб1</p> <p class="tab" style="display:none">Таб2</p> 
    • Thank you made yourself not useful) - Goldy

    Look in the direction of jQuery : on the main page there is an example of what you need.

    • Made it on jQuery task was from the category "Sausage is more difficult to cut" - Goldy