Текущий URL-адрес const currentURL = () => window.location.href;JavaScriptCopy currentURL(); // 'https://www.google.com/'JavaScriptCopy Браузер JavaScript