Okey i got three iframes, and i want to have a button so i can immediately scroll to button of one of the iframe(iframe1). I think i got most of the code correct, i just dont know how to make the 'function scrollDown'
My code:
<iframe id="iframe1" src="http://examplepage1.com"><iframe>
<iframe id="iframe2" src="http://examplepage2.com"><iframe>
<iframe id="iframe3" src="http://examplepage3.com"><iframe>
<button id="scroll">Go to button</button>
<script>
var scroll = document.getElementById("scroll");
scroll.addEventListener("click", scrollDown);
function scrollDown() {
}