There is a plugin for Firefox called
mozplugger that can be used for a number of different web embedded media types (including midi). Your distro may have it in the package repositories.
You will need to have
timidity as well to get this to work (I think you can use
playmidi instead of
timidity if you have midi hardware, but I haven't tested out this alternative with
mozplugger).