<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <script data-class="radarioButtonScript" src="https://radario.ru/scripts/widget/buy-button-widget.js"></script> </head> <body class="grid"> <div class="grid tickets" id="tickets"> а вот это ссылка <a onclick="openBuyPopup()" href="#tickets">Купить билет</a> </div> <script> function openBuyPopup() { var opt = { id: 453795, forgetOriginalHash: true }; radario.openBuyPopup(opt); } window.onload = function() { if (location.hash === '#tickets') { openBuyPopup(); } }; </script> </body> </html>