Is there a way to jump to a section on a different page when you click a link? I am a beginner, so I don't know JavaScript etc.
You don't need anything but HTML:
<a href="other-page.html#example">
and (on the other page):
<div id="example">
Wrap the part in a <div>
and and define an ID to it. Like this:
<div id="loc">
Band then add an anchor tag with href
set to that id:
<a href="#loc">
This will take the screen to that part the the referenced ID.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.