game completed - redirection

how i can add a redirection, after the user win the game? 

where in the js i can add some like window.location.replace("");


thanks for the help!



icc's picture

This is the code:

H5P.externalDispatcher.on('xAPI', function (e) { 
  if ( { 

You can add it to any .js file on your page.