Have HTML box click move to next anchor on WIX page...

Hey guys,

again with another advanced question.

I have a html coded button on my page that changes when hovered over. Now I want this button to work with the anchors on my WIX page. Like this:

HTML Button>Hover>Click>Move to next anchor.

Is there a destination path of some kind of the anchors on the WIX page that I could embed in the HTML code?

Something like: Click me

Maybe there is hope :slight_smile:

Hi,
You can send a post message from the iFrame to the page when the button is clicked and use the
scrollTo( ) function when receiving the message from the iFrame.

Good luck,
Tal.

Wow Tal,

that is very advanced for me oO. Iā€™ll read into it and try to get this doneā€¦

Thanks so far

Out of curiosity, why do you use HTML code to add a button to the page instead of adding a button from the editor itself?

Hey again :slight_smile:
Simple: Because the button I want to use is more beautiful on hover in HTML.

Example:
https://sjaeger121212.wixsite.com/anatha/buttons

the first one is HTML the second one made with a WIX Button, Illustrator gradient and ā€˜SlideInā€™ Function.

I saw that thereā€™s no anchor on the page itself. Do you wish to redirect to a different page and scroll to an anchor on that page on a user clicks on that button?

Yes, I want the user to click on the coded HTML button inside the HTML Box and - in this case - then being redirected to an anchor on a different page like ā€œabout usā€. IF that is generally possible, I want buttons like this on other pages to redirect to certain anchors on these particular pages as well.

I created that linked page just for showing these buttons. The page itself has anchors indeed :slight_smile:

Hi,
I have a suggestion for you,
Change from anchor element to button element and use this article to communicate between the html element to ā€œparentā€.
Handle the navigation from onMessage event function.
Feel free to paste your code here if you canā€™t get it done.
Good luck!
Roi