Load external HTML file with HMTL Snippet

0
Hi, for my use case it's necessary to load an external html file. This includes some document internal links to a header with a unique id. Like this example:   Header with id: <h3 id="test-header">Test header</h3>   Link: <a href="#test-header">Go to test header</a>   Every time when I am click on the link, it will not jump to header and reloads the page.    I am using the HTMLSnippet module v.3.9.8.   Has someone an idea to solve this issue?   Thanks and regards Ingo  
asked
2 answers
0

I also have the same requirement. Do you fix the issue?

answered
0

Can you not use JS Action for this? like

if you somehow float a JS Action button on top of your HTML file and also you know the specific id of the HTML element to scroll to, you can do

document.getElementById("test-head").scrollIntoView()

Have you tried this?

 

 

answered