Why am I getting Error message: addEventListener is not a function

You don’t want to add an event listener to the name of the element but to the actual element; strings don’t have an addEventListener() method, hence the error.

video_box now indeed refers to the element with the ID video_box, but this is very bad practice and should be avoided for several reasons – better use getElementById() as I suggested above.

Anyway the entered URL now seems to appear in the box to the right…