Baumeister Mediasoft Engineering BME - Baumeister Mediasoft Engineering  JavaScript Application: MIDI Player - English Version JavaScript-Anwendung: MIDI-Player - Deutsche Version
Baumeister Mediasoft Engineering
Bartels AutoEngineerCarLogServicesResourcesCompany ProfileContact Us
Baumeister Mediasoft Engineering » Resources » Web Development » JavaScript » Applications » MIDI Player
JavaScript Applications

JavaScript Application: MIDI Player

Baumeister Mediasoft Engineering

The following JavaScript statement loads the MIDI file tune.mid to the default user system application for processing and/or playing MIDI files:

location.href='tune.mid';

This statement can easily be used in a hypertext link:

<a href="javascript:location.href='tune.mid';">Play MIDI Tune</a>

The following example provides a form with a button for activating the same statement through onclick():

<form>
<
input
    type
="button"
    
value="Play MIDI Tune"
    
onclick="location.href='tune.mid';" />
</
form>

Working example:

Thanks to Suzanne Rhatigan for preparing this little tune.

Baumeister Mediasoft Engineering » Resources » Web Development » JavaScript » Applications » MIDI Player

JavaScript Application: MIDI Player • © 2025 Manfred Baumeister • Updated: 29 October 2008, 14:15:02 GMT

Baumeister Mediasoft Engineering, Clontarf, Dublin 3, D03 HA22, Ireland
© 2025 Manfred Baumeister

JavaScript Application: MIDI Player - English Version JavaScript-Anwendung: MIDI-Player - Deutsche Version