Here is the code snippet I am currently working with:
document.getElementById(myid).onclick = function() {
HandleGPIO(val1, val2);
};
if (console) {
console.log(document.getElementById(myid).getAttribute('onclick'));
}
My goal is to determine how the function HandleGPIO() was assigned.
Does anyone know an effective way to debug this? The getAttribute method doesn't seem to be working in this case and only returns null.