Well-Known Member
I use iframe for Wikipedia but it doesn't fit the whole page.
The width is 100% and okey, but it doesn't work for the height.


This is the code:
<iframe src="https://nl.wikipedia.org/w/index.php?title={$id}&printable=yes" scrolling="yes" frameBorder="0" height="1350" width="100%"></iframe>

Anyone a suggestion how to set the height to 100%


Well-Known Member
Sorry for the delayed response... I went looking for a method when you first posted and ended up having to step away, forgot to respond!

The only way I'm seeing on how to do it would be javascript:


You can use our custom JS template add any code:

xb_custom_js_head // xb_custom_js_body
That doesn't work, now I got a small view.
<iframe src="https://nl.wikipedia.org/w/index.php?title={$id}&printable=yes" scrolling=" no" frameBorder="0" onload="resizeIframe(this);"></iframe>

xb_custom_js_head code:
  function resizeIframe(obj) {
    obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.