Tassos Marinos Developer of Joomla Extensions

The IFrame Box Type

Published in EngageBox
Updated 18 Apr, 2020

The IFrame Box Type is a very helpful and robust way to create a box which contains an IFrame. Using the HTML iframe tag can be tricky and unpredictable in some situations. The IFrame Box Type takes care of the intricacies for you. Let's see how we can set one up with EngageBox.

The IFrame Box Type Selection

First, you need to make sure that you have selected the "IFrame" Box type as shown in the screenshot below.

the iframe box type

The IFrame Options

Then, you should type the IFrame's URL. You can do that by writing the URL directly in the IFrame options.

You can also set a Height for your IFrame using pixels or a percentage. Depending on the IFrame's content, there may be a need for scrollbars. Setting the Scrollbars to Auto can be the recommended option since the scrollbars appear only when the IFrame's height isn't enough.

Also, for the developers among you, you can directly type your HTML Attributes in the respected field and they will be added as they are in the IFrame tag.

the iframe customizations for the iframe box type

The Box type's Behavior

Furthermore, you can select when will the IFrame be loaded into your webpage. On most occassions, it is recommended to use the "After Box Open" option since the loading and rendering performance of your webpage is the least affected this way.

However, you can also choose:

  1. Before Box Open: This way the IFrame will load even before the box opens.
  2. On Page Load: This way the IFrame will load when your webpage has finished loading completely.
  3. Disabled: This way the IFrame will load as if it was part of your webpage in a sequentially manner.

When the box closes you can choose whether to remove the IFrame from your webpage completely. If you choose "Yes" then this means that the box will have to create network requests again for the same IFrame in case it opens up again.

the box behavior on iframe box type

The text before the IFrame

Finally, if you would like to add some descriptive text before the IFrame's content you can add it in the editor like in the screenshot below.

the text before the iframe box type


It should be noted that a website can be configured so that they are not allowed to be viewed through an iframe from a different website. In this case the iframe will load a blank page.

It should also be noted that some popular browsers disallow the loading of iframes which contain non-HTTPS content on webpages which are under HTTPS. This policy is called Mixed Content Blocking and has been the norm since at least 2013.