- 21 May 2025
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Can Whatfix work with iframe applications?
- Updated On 21 May 2025
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Yes, Whatfix is one of the few Digital Adoption Platforms that work well with iframe applications.
Whatfix readily supports providing user assistance across complex application structures. If your application uses iframes or framesets, you may require specific configurations to ensure that Whatfix functions correctly within the embedded content.
Read the following sections to learn how you can enable Whatfix to display content within the iframes of your application based on the delivery method (JS embed or browser extension).
JavaScript Embed
For Whatfix to display content, you need to add the script within the <head>
or <body>
tags of each iframe's HTML document.
The Whatfix script must be included within the iframe's content itself, either directly in its HTML or after the iframe's content.
Here’s an example that shows where you need to add the JavaScript embed in the HTML code of your application:
<html>
<head>
<script src="[Whatfix JavaScript URL]"></script>
</head>
<body>
</body>
</html>
When you use the JavaScript method, ensure that the Whatfix JavaScript code snippet is included in every iframe within your application, in addition to the main application.
The implementation ensures that Whatfix can interact with and provide guidance within all embedded content inside the iframe.
Browser Extension
When applications include separate embedded web pages, such as iframes or framesets, these embedded contexts have their own security boundaries set by the browser and the source of the embedded content.
To enable Whatfix to provide guidance within these iframes, specific configurations may be necessary to ensure that the browser extension functions correctly within the iframe.
To configure the browser extension based on specific requirements, contact support@whatfix.com.
Additionally, here are some aspects to consider when using the browser extension method:
- Grant the extension permissions to access content within iframes.
- Manually enable the extension for specific sites.
- Once the required configurations are deployed, ensure that the Browser extension is installed and enabled within the user's application.
For more information, see Integrate Whatfix using Browser Extension.