Overview
Access to Url
In some HTML pages, you will want to get access to the $url service, which will mean that the page can download data using the viewers authentication (subject to all the normal constraints, including permissions and trusts).The following code demonstrates getting access the the url service.
(async function(){
let $url = <%=$url%>
})();