MrTV
asked on
javascript to show video
/*this code is work for image how can i make it work for video for code section below
var img2 = document.createElement('img');
img2.src = "http://www.mykohsamui.com/wp-content/uploads/2017/08/sunset-samara-samui.jpg";
infowincontent.appendChild(img2);
*/
var img2 = document.createElement('video');
img2.src = "https://www.youtube.com/watch?v=4BGCpKQTMfo";
img2.autoPlay = true;
infowincontent.appendChild(img2);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER