Try
{
myTextTrack = myPlayer.addTextTrack( 'subtitles','myLabel','en' );
} catch(err)
{
alert('This browser does not support the comments on the video.');
return;
}
The above should trigger the alert in IE (not in Chrome). But it gives a script syntax error. The code is generated by asp.net and then inserted, so there are carriage return/linefeeds after every line. But that should not matter.