Answers for "iframe for youtube"

-1

youtube video autoplay iframe

<iframe width="560" height="315" src="https://www.youtube.com/embed/bmVKaAV_7-A?autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Posted by: Guest on July-09-2021
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

Browse Popular Code Answers by Language