I have this form inside test.html file
<form name="myForm1" id="myForm1" action="" method="post" onsubmit="">
<input type="submit" value="YES" class="buttonclass">
</form>
I load it using another file called iframe.html
<iframe id="iframeID" src= "test.html"></iframe>
Now how can I automate the click of the submit button in the iframe using JavaScript ?