HTML button event
Posted: Wed Mar 22, 2023 5:54 pm
Hello,
I my program I use a webgadget() in which I load a htmlpage that contains a button like this
I my program I also have als an inline javascript function like
When I click the 'Read All' button in the webgadget I would expect an alertbox reporting the button id, but ... nothing happens.
Debug console show
I my program I use a webgadget() in which I load a htmlpage that contains a button like this
Code: Select all
<button id='button1' onclick='buttonclicked(this.id)'>Read All</button>
Code: Select all
! function buttonclicked(id)
! {
! alert('id');
! }
Debug console show
What am I doing wrong ??Uncaught ReferenceError: buttonclicked is not defined