​Focus on javascript window on load?

  • I load a javascript file into a div with id "mydiv" with the command jQuery('#mydiv').html(jQuery.getScript('location of js', function(){ ... }));

    In my example you control stuff with the arrow keys, but you cannot do this until you click on the window. Is there a command to simulate a click / focus on the div after you click "play" in Möbius?