Skip to content
Discussion options

You must be logged in to vote

Hi @TomRui,

Yep, you can use a couple different methods.

My preferred approach is to display the link as clickable text so participants know that they are being redirected. You can use an html-keyboard-response trial to do this:

var redirect_trial = {
	type: 'html-keyboard-response',
	stimulus: '<p>You have completed the experiment.</p><p><a href="url-to-redirect-to">Please click here to return to Qualtrics.</a></p>',
	choices: jsPsych.NO_KEYS
}

You could also redirect the participant manually via a call to window.location. For example:

jsPsych.init({
	timeline: [...],
	on_finish: function() { window.location = "url-to-redirect-to"; }
})

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@TomRui
Comment options

@jodeleeuw
Comment options

@TomRui
Comment options

Answer selected by TomRui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants