I’ve got extensive use of on click events within hyperlink tags
“`
<a href=”#” onclick=”myFunction();”>On Click Function Here</a>
<a href=”#” id=”myID”>Listen for Click on ID event</a>
With these I’m using Javascript to load content into my page via fetch method.
I now have two issues
1) When I use the href=”#” and when a user clicks on it, I jump to the top of the page and back down? Why?
2) Bigger issue: A user wants to right click and open the link in a new tab?
How can enable something like this. This page is Main Content > Dynamically Loaded on event > Second dynamically loaded stuff.
If a user opened a new tab I would need third level content loaded not starting again.