I'd like to click on an embedded youtube video using javascript (so the video plays automatically). I successfully simulated a click on a <div>
like this:
function f(){
alert("hello");
}
<div id="someid" onmouseup="f();">
my text
</d>
document.getElementById("someid").onmouseup();
How can the above code be adapted to work with an embedded youtube video?