This page will help you get started with rollMyFile JavaScript API to open hundreds of different file types on the Web.

Using rollMyFile API in JavaScript

On a page, where you want to let users open files, you simply do the following

<script type="text/javascript" src="https://api.rollapp.com/2/js/rollmyfile.js"></script>

<script type="text/javascript">
    var key = "SeCur3AP1K3y";

    var rollMyFile = new RollMyFile(key);
</script>

And then all it takes to open a file is

rollMyFile.openFileByUrl("https://www.example.com/documentation/overview.docx");