diff --git a/others/anchor-links/anchor-javascript.html b/others/anchor-links/anchor-javascript.html index 3de1d03..41a468a 100644 --- a/others/anchor-links/anchor-javascript.html +++ b/others/anchor-links/anchor-javascript.html @@ -68,6 +68,7 @@ behavior: 'smooth', block: 'start' //scroll to top of the target element }); + window.location.hash = e.target.href.split('#')[1]; }); }); @@ -125,4 +126,4 @@

Conclusion

Why your minute meal never works out the way you plan.

- \ No newline at end of file +