Skip to content

@webxl /2fiddle.js
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Load into JSFiddle
if (typeof gistJSUrl != 'undefined') {
frame = document.createElement('iframe');
body = document.getElementsByTagName('body')[0];
body.appendChild(frame);
frame.src = gistJSUrl;
form = document.createElement('form');
body.appendChild(form);
form.action = "http://jsfiddle.net/api/post/mootools/1.2/";
js= document.createElement('textarea');
form.appendChild(js);
js.innerHTML=frame.contentWindow.document.body.innerHTML;
//form.submit();
}
<html>
<head>
</head>
<script src="2fiddle.js"></script>
<body>
<h2>Hello world</h2>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.