The iFrame macro enables you to display a web page within a Confluence page.
The iFrame macro is configured by the Confluence administrator. By default, it is rendered with the sandbox attribute.
Learn more about the Iframe macro configuration before you begin.
Navigate to the page where you want to display a web page.
Click Insert More Content > Other Macros.
Select the iFrame macro from the Macro Browser.
Complete the desired fields.
Parameter Description Type Default Required
The URL of the document to show in the iframe.
Specifies a unique ID to be added to the element
Option to apply a custom CSS class to the element. Enter the CSS class name(s) to apply to the macro (case sensitive); multiple classes can be separated by a space or comma. Classes must be part of your Global Confluence CSS or defined in a CSS Stylesheet macro that you have added to your page.
An optional inline style sheet to apply to the tag
Text to display in a tooltip
The width of the iFrame in px or %
The Iframe height in px or %
A url to a page which contains a long description of the content within the Iframe
Specifies a unique name of the Iframe (to use in scripts)
Specifies the text direction
Enter a language code if you want to specify that the element content language is different from the default language of your page, e.g.
defor German. Browsers will identify that the content is written in German.
Allow Full Screen Mode
Allows Iframe to be viewed full screen
The URL parameter must be specified for this macro to work.
Click Insert. The macro placeholder displays.
- Save the page to view the web page in your Confluence page.
Content that previously worked no longer displays
The Iframe macro shows a blank area instead of imported content. This Iframe used to work as expected but now shows a blank box.
There are two reasons why content that used to display in the Iframe macro may no longer show in a Confluence page.
- The administrators of the website have set an option on their server that prohibits the inclusion of their site's content in Iframes. This setting is called the The X-Frame-Options response header, as described by Mozilla.
The browser is stopping the inclusion of content from another site for security reasons. This is a feature of modern browsers called Mixed Content Blocking as described by Mozilla.
Both the scenarios described above are beyond the control of the Iframe macro and its developers.
If you are affected by this problem, try one of the following:
https://at the start of the Iframe source web address e.g. https://www.adaptavist.com - this can help with mixed content blocking.
Use an alternative method of importing content, such as the HTML Include macro - please read the caveats on the linked page carefully.
Remove the Iframe macro from the page and link directly to the content instead.