FAQ: What is an iFrame?
An iFrame is an inline frame used inside a webpage to load another HTML document inside it. This HTML document may also contain JavaScript and/or CSS, which is loaded at the time when iframe
tag is parsed by the user’s browser.
Website users often come across iframes when trying to embed something from an external source into their site. The most common example of an iframe embed code is the YouTube video embed code which looks like this:
1 | < iframe width = "420" height = "315" src = "//www.youtube.com/embed/qzOOy1tWBCg?rel=0" frameborder = "0" allowfullscreen></ iframe > |
In the above example, the iframe tag loads YouTube’s video player with the video ID provided in the code. It has other parameters defined, such as height, width, frame border, etc. These parameters will be used by the script, which loads the YouTube video player.
Tyviso uses an iFrame to display our banner on the checkout confirmation page.
Why an iFrame?
Many websites may provide users with an iframe embed code to insert certain elements on their websites. Most commonly, web analytics service providers, social media websites, and video sharing sites offer users embed code in iframe format.
Tyviso uses an iFrame because:
- It does not require a developer to setup
- It’s quick and straightforward
- Secure
- Does not affect page load times
- It is supported on all devices and operating systems
How do I install an iFrame?
This changes slightly depending on what e-commerce platform your site is hosted on.
Check out our setup guides to find yours: https://tyviso.com/setup-guide/
And yes, the above video is an iFrame 😉