It would not be trigger custom behavior. You'd just take an element, and choose Edit > Edit Element's Inner HTML and then add that text and see if it works. (But like I said, there's a good chance this won't).
It may be that you have an error here, the spacing is kind of weird. I'd try the exact line that I posted above, especially since the anchor tag seems to be #etage
. That said I don't have a setup to try this, so it is only speculation! There are definitely other libraries folks have used for smooth scrolling; here's the previously link but I'd guess there are other solutions.