Airim Documentation
Search…
Using Iframe mode

Iframe mode

Iframe mode loads the widget in an iframe with source set to cdn.airim.co. This is for additional security as the iframe which loads is from another domain, it cannot access elements from the parent window.
1
<script type="text/javascript">
2
!function(t,n,i,c,r){t.AirimObj=r,t[r]=t[r]||function(){(t[r].q=t[r].q||[]).push(arguments)},e=n.createElement("script"),x=document.getElementsByTagName("script")[0],e.async=1,e.src="https://cdn.airim.co/widget.js",x.parentNode.insertBefore(e,x)}(window,document,0,0,"airim");
3
airim('mode','iframe') // important to be before init function
4
airim('init','<your_account_id>'); // dont forget to replace account id from settings page
5
</script>
Copied!
To obtain your javascript code click here. Add the snippet airim('mode','iframe') before the init call
Last modified 2yr ago
Copy link