Answers for "youtube iframe play on load"

2

load youtube iframe player api

// This code loads the IFrame Player API code asynchronously.
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
Posted by: Guest on September-28-2020

Code answers related to "youtube iframe play on load"

Browse Popular Code Answers by Language