how to follow anchors made with id attributes?

Added by Аз Есмь 10 months ago

hello,

say, a page contains an HTML element with an id attribute. for instance, <H2 id="section2">Section Two</H2>. how to scroll the page to the element?

thank you


Replies (2)

RE: how to follow anchors made with id attributes? - Added by Wim Dumon 10 months ago

How does <a href="#section2">scroll to section2</a> not work?

BR,
Wim.

RE: how to follow anchors made with id attributes? - Added by Аз Есмь 10 months ago

well, the problem was that i needed to do that with a WText or WPushButton, and not WAnchor or "a" element. it didn't occured to me that i could add any WWidget to WAnchor to make it a hyperlink. thank you for the hint, Wim :-)

(1-2/2)