JSFiddle - React, Tailwind, and code Playground

by Znarkus

HTML

<a href="#" id="scroll">Scroll to (400,400)!</a><br />
<iframe width="400" height="400" src="http://fiddle.jshell.net/_display/" scrolling="yes"></iframe>

JavaScript

$("#scroll").click(function()
{
    //$("iframe").scrollTop(400).scrollLeft(400);
    $("iframe")[0].contentWindow.document.scrollTop = 400;
    return false;
});