How to embed 2 iframes on 1 page

If you want to integrate more then one quiz, assessment, test or exam on your website please follow the following instructions.

Get started with Easy LMS

Request a free demoorStart a free trial

To embed multiple tests (quiz, exam or assessment) on a page you can add <div> to the place where you want to have a test. This will be filled with the iframe.

For example:

.. html ...
<div id="embed-location-1"></div>
... html ...
<div id="embed-location-2"></div>
.. html ...
<div id="embed-location-3"></div>

Before the </body> the following script should be added.

<script type="text/javascript">
var QuizWorks = [
[document.getElementById('embed-location-1'), '{quiz/assessment/exam/course }', '{ id of quiz}', '100%', 'auto'],
[document.getElementById('embed-location-2'), '{quiz/assessment/exam/course }', '{ id of quiz}', '100%', 'auto'],
[document.getElementById('embed-location-3'), '{quiz/assessment/exam/course }', '{ id quiz}', '100%', 'auto']
];
</script>
<script type="text/javascript" src="https://www.onlinequizcreator.com/script/embed.js" async="async"></script>

For every embed-location you create you can add a test. 

Start my trial Free live demo

Get started today!

Join almost 1 million users and try out our awesome tool.

Start your free trial today