How to insert value into external input of iframe

I have a button and an external iframe and I need to click on the button to insert some value input into this iframe


<script src=""></script>
<button id='button'>test</button>
<iframe src="" width='900' height='500'></iframe>

Run codeHide result



source to share

1 answer

Main frame and pridat.aspx must be located in the same domain



All Articles