Items API Initialization
focus_on_player
Sets the browser focus to the start button element on the intro page when the assessment player has loaded. This functionality is enabled by default.
You would want to set this option to false
to disable the automatic focus change when the assessment player has loaded.
Examples
// Disable automatic focus when the assessment has loaded
var initializationOptions = {
"config": {
"configuration": {
"focus_on_player": false
}
}
};
Values
Attribute path config.configuration.focus_on_player
Default true
Type boolean
Possible values
-
true
Sets the browser focus to the start button element when the assessment player has loaded. When there is no intro page, the focus will go to the first Item of the assessment.
-
false
Disable the automatic focus change when the assessment player has loaded.
Caveats
When the show_intro
initialization option is set to false
, the focus will move to the first Item of the assessment.
By default, this initialization option is set to true
and will override the scroll_to_test
initialization option.
Related articles
- The
show_intro
initialization option, which controls whether an intro screen should be displayed. - The
scroll_to_test
initialization option, which brings the assessment player into view by automatically scrolling the browser window when the session starts.