Tutorial Description - Show hide menu
Learn how to create a show/hide menu using javascript.
In the first javascript tutorial you have the opportunity to learn how to make a simple menu with submenu that is opened and closed by click (onclick).
Menu works like this: some parts of the table (submenues) are left invisible (diplay: none). When we click on the link, javascript navigation function, with ID that should be shown, is called and the hidden part of the table is opened as submenu.
Let us get started with JavaScript function that we will place inside of head tags, together with css.
JavaScript