Skip to main content

In iframe

iframe integraion is a fastest way to embed a program on your page. To do this you can use player hosted on dos.zone. You just need the url of a jsdos bundle (you can get it from our game database).

<iframe
id="jsdos"
src="https://dos.zone/en/player/https%3A%2F%2Fdoszone-uploads.s3.dualstack.eu-central-1.amazonaws.com%2Foriginal%2F2X%2F5%2F5c63f84bae9688046b9a7c0a9f1f1c8904616052.jsdos"
/>

The src can be composed like this:

const src = "https://dos.zone/en/player/" + encodeURIComponent(bundleUrl);

To receive input you should focus the iframe:

document.getElementById("jsdos").focus();

Complete example:

examples/iframe.html
Run
{}
info
  1. Drag with the mouse to play without a keyboard!
  2. Open top menu to type records name on mobile.
warning

Iframe integration didn't support a fullscreen button yet, if you need it look forward.