Hi
I would like to know if it’s possible to use wixLocation.to in a scrool menu in html and css. I would like to use wixLocation for link my web page instead to use href=“https…”
Here is a example:
Hi
I would like to know if it’s possible to use wixLocation.to in a scrool menu in html and css. I would like to use wixLocation for link my web page instead to use href=“https…”
Here is a example:
Hey Mell,
Could you help us understand your use case? Why not simply use a regular button and add an anchor to it?
I don’t want a button it’s for a drop-down menu. I’m french and I would like that my menu are multilinguage. The example it’s just a part of my code not all.
I noticed that my path href = “https:… .com” took much of time to load and I tough that if I use API’s Wix like wixLocation.to maybe the path will be shorter to load and fix it
My drop-down menu is a Html + css code. It’s possible to add javascript and add something like that:
function to(url: string): void { import wixLocation from 'wix-location'; } $w("accueil").onClick{ wixLocation.to ("/"); } and in html partHey Mell, just to be clear, are you using HTML component to write this code?
Sorry but I don’t understand term of code… I’m not sure. My code begins with . And I use one page for htlm and css because I don’t have a code program on my laptop. I checked on Wikipedia the signification of html component… and no I don’t have a extention htc. but What is Htc???