Good morning,
I have a single-page html code where I control the display of 3 divs with show / hide through a menu.
But I would like to use a single button where as each div is displayed it has a different action. Ex:
DIV 1 ativada
function botão() {
abreHome();
}
DIV 2 ativada
function botão() {
abreCatalogo();
}