Allow Leaving

Control the mechanism preventing users from leaving the task by mistake

By default, each time users attempt to leave the page, minno-manager inquires whether they actually mean it. The allowLeave task cancels this inquiry, and allows easily leaving the player.. It is usefull if you want to allow users to browse away from a page, for example toward the end of a task in a debriefing page. It makes debugging a bit easier as well.

The API is as follows:

propertydescription
preventLeavingWhether to prevent users from leaving the page (default is false).

The following task will allow users to leave the page:

{ type:'allowLeaving' }

The following study shows how to use allowLeaving in order to allow users to browse away within an informed consent message.

API.addSequence([
    { type: 'allowLeaving' },
    { type: 'message', templateUrl: 'consent.jst' },
    { type: 'allowLeaving' , preventLeaving: true},
    { type: 'quest', scriptUrl: 'quest.js' }
]);
Last modified March 11, 2021: setup hugo (11980dc)