2
Guys I’m trying to use a script to try to give an automatic Play in a Youtube video.
The closest I found was the script below.
This script does something close to what I need, but it just does it at some link.
<script type = "text/javascript">
window.setTimeout("autoClick()", 5000); // 5 seconds delay
function autoClick() {
var linkPage = document.getElementById('ads-container').href;
window.location.href = linkPage;
}
</script>
<a href="" id="ads-container"> Dynamic Link </a>
What I would like to do is instead of this script give an auto click on a link.
he gave an auto click on a content that was inside a div or iframe like this.
<iframe width="560" height="315" src="https://www.youtube.com/embed/YBHQbu5rbdQ" frameborder="0" allowfullscreen></iframe>
Does anyone have any idea how to do this?
Only normal youtube autoplay no longer serves? http://www.youtube.com/embed/LxLLgo4HVp8?autoplay=1
– Bacco
Actually no, iframe is an example of what would be the content that would be clickable
– Endou