I am confuse about the usage of 'this' in JS.
Take example from w3cshool: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_ev_onchange2
<!DOCTYPE html>
<html>
<body>
<p>Modify the text in the input field, then click outside the field to fire the onchange event.</p>
Enter some text: <input type="text" name="txt" value="Hello" onchange="myFunction(this.value)">
<script>
function myFunction(val) {
alert("The input value has changed. The new value is: " + val);
}
</script>
</body>
</html>
If I delete the 'this', it works too, too bad I can't find any tutorial in w3school to differentiate it.
In what situation will 'this' make a different than no 'this'?