問題タブ [anchorpoint]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - 別のページを開き、アンカーまでスクロールします
現在、同じページのアンカー ポイントにリンクしていますが、以下のコードはスクロール効果でこれを実現しています。ただし、アンカーを別のページに配置したい。
私が望むのは、ボタン (.ebooks-button) をクリックするとページが開き、アンカーまでスクロールダウンすることです。
ここに私が現在使用しているコードがあります。これを達成するのに役立つJavaScriptの変更を誰か提案してもらえますか?
});