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