Javascript Issue

Please see attached.

Note down near the end where it says HTML the object video1.

Note the soutce src = <function>

This doesn't work.

Richard KortsAsked:
Who is Participating?
COBOLdinosaurConnect With a Mentor Commented:
The vale for src must be an absolute or relative url.  You can't put a function there because there is no event to fire the function.  If the source is variable then set it in the javascript with document.getElementById('video1').src='urlofvideo';

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.