09-08-2022 05:49 AM
Hi community,
i have the requirement for several AUP Disclaimers in the same Portal. In order to do so, i can put them all in the AUP Box sequentially. The top of the box i have the links to each version referenced by jump marks as such:
<a href="#abschnitt1">zum Anfang des Abschnitt 1</a>
<a href="#abschnitt2">zum Anfang des Abschnitt 2</a>
<a href="#abschnitt3">zum Anfang des Abschnitt 3</a>
<h1 id="abschnitt1">Überschrift 1 blabla</h1>
<p> ne Menge Text</p>
<h1 id="abschnitt2">Überschrift 2 blabla</h1>
<p> ne Menge Text</p>
<h1 id="abschnitt3">Überschrift 3 blabla</h1>
<p> ne Menge Text</p>
It is not jumping when i click on the links. If i rightclick them and open in new tab, it opens the tab with correct aup box scroll position.
What can i do here do make it work in my current tab.
P.S. i tried several browsers with the same result
11-12-2022 10:49 AM - edited 11-12-2022 10:49 AM
There are two ways to do this: id attributes and named anchors. Both allow you to jump to that section of your document using a fragment in your URL as you showed:
scheme://host[:port][/path][?query][#fragment]
id attributes are often used with headers for auto-generated table of contents. Keep in mind that an id name must be globally unique within the page or it will not work.
<a href="#my_id_name">Jump to <code>my_id_name</code></a>
<h2 id="my_id_name">My ID Name</h2>
The other option is the named anchor which works similarly :
<a href="#my_named_anchor">Jump to <code>my_named_anchor</code></a>
<h2><a name="my_named_anchor"></a>My Named Anchor</h2>
11-13-2022 12:08 PM
Or, it might be something to do with iFrames or the like. See Using Anchors with IFrames
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide