I’m having problems trying to call javascript from a portal page. Ultimately the button click will run an Azure function.
But for now I’ve stripped this right back to basics with a very simple example to display a message when a button is clicked, but nothing happens. I’m missing something obvious I’m sure?
The javascript resides in the Custom Javascript section of the Advanced option of the web page

And the HTML for the button is in the Web Template used by the page

And the button appears on the page

Thanks in advance