Dear Sirs,
Happy new year,
Is it possible to make a button perform double function on a click (like open a page and hiding or closing a content box) when the button is clicked ?
I have already achieved the 1st function (opening a page) by linking it to the page address using button settings but I need it also to close the content box which the button is clicked.
Best Regards
Ahmed
You can have an onclick event handler for the button which does both things:
export function button_onClick(event) { $("#box").hide(); // first close box wixLocation.to("/site-page"); // then can redirect to other page }
What if I want this to link to an external page instead?