<!DOCTYPE html>
<html>
<head>
<title>RLG iframe test</title>
<style type=”text/css”>
* { margin: 0; padding: 0; }
</style>
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no” />
<script>window.addEventListener ? window.addEventListener(“message”, handleRedlineMessage) : window.attachEvent(“onmessage”, handleRedlineMessage); function handleRedlineMessage(event) { var d = event.data; if (d.method===’pageload’) { window.scrollTo(0,redlineOffsetTop()); /*console.log(‘RLGIFRAME: ‘+d.url);*/ }} function redlineOffsetTop() { var element = document.getElementById(‘redlineiframe’); var top = 0; do { top += element.offsetTop || 0; element = element.offsetParent; } while (element); return top; }</script>
</head>
<body>
<iframe id=”redlineiframe” src=”https://webshop.redlinegolf.nl/nl/editor/0?iframe=32235&noscroll” scrolling=”yes” style=”width: 1px; min-width: 100%; height: 1000px; display: block;” frameBorder=”0″></iframe>
</body>
</html>