.Hello! I want realtime value from range input to array in onload function (I use opencv.js and vanilla) :

```
<input type="range" min="0" max="179" oninput="myFunction(this.value);">

```

```
imgElement.onload = () => {
   let array = [HERE I WANT REAL TIME VALUE FROM INPUT RANGE,2,3,4];
}

```

With my skill I can send this value only when onload function is ready or I can do this:

```

function myFunction(e){
    let array = [parseInt(e),2,3,4];
}

```

But I can't achieve realtime result on imgElement.onload function.

I will be grateful for your help!