So basically i got an unlimited number of different types of divs with lists in them and they all include an a tag with a youtube video... When i press on it gets played on a big iframe...
<div class="the box">
<ul class="first">
<li class="second">Taylor Swift - Shake It Off</li>
<li class="third">
<a href="//www.youtube.com/embed/nfWlot6h_JM?autoplay=1" target="iframeu"><img src="bilder/play.png" alt="play" id="knapp6" width="40" height="40"></a>
</li>
</ul>
</div>
<div class="the box">
<ul class="first">
<li class="second">PSY - GANGNAM STYLE(강남스타일) M/V</li>
<li class="third">
<a href="//www.youtube.com/embed/9bZkp7q19f0?autoplay=1" target="iframeu">
<img src="bilder/play.png" alt="play" id="knapp6" width="40" height="40"></a></li>
</ul>
</div>
<div id ="player">
<iframe height = "195" width = "320" frameborder = "0" autoplay
src="//www.youtube.com/embed/msSc7Mv0QHY" name= "iframeu" id = "mainFrame" > </iframe>
</div>
So my question is, is it possible for me to be able to play the next song after the first one is finished? Can I do this without having to call the youtube api with javascript/jquery and iframes only? enter image description here