Widget:Charsheet: различия между версиями
Материал из Ролевой сервер "tales.pw"
Xunto (обсуждение | вклад) |
Xunto (обсуждение | вклад) |
||
| Строка 13: | Строка 13: | ||
div.contentWindow.document.body.scrollHeight + 'px'; | div.contentWindow.document.body.scrollHeight + 'px'; | ||
} | } | ||
| + | alert("test"); | ||
</script> | </script> | ||
Версия 22:56, 25 июля 2019
<iframe
src="https://test.tales.pw/" width="100%" frameborder='no' id="target"
/>
<script>
var div = document.getElementById("target");
div.onload = function() {
div.style.height =
div.contentWindow.document.body.scrollHeight + 'px';
}
alert("test");
</script>