是否可以 link 到另一个网站,在新选项卡中打开它,然后滚动到该网站上的 div?

Is it possible to link to another website, have it open in a new tab, and then scroll to a div on that website?

例如

<a href="https://amazon.com" target="_blank"> Go to amazon and scroll to footer </a>

当您单击它时,它不仅会在新选项卡中打开亚马逊,而且会在打开时自动滚动到页脚。

最终解决方案就是dziku86评论的。

“是的,如果 div 具有您可以参考的唯一 ID。例如,在 amazon.com 上,页脚 ID 是 navFooter,因此您的 link 将如下所示: