when a user views a page containing a javascript program which machine actually executes the script
read this article
ketave4815 December 18, 2021Computing
news
https://findtheansweres.blogspot.com/2018/01/when-user-views-page-containing.html