‹ Back to help overview

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.

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 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. 

Get started right now!

Create a free assessment

It's time to create your own in a few simple steps. You'll be assessing people in no time!

Want to register first instead? Register

Need a custom assessment?
Take a look at the possibilities or
send us an e-mail.