Embed : embed « HTML Tags « JavaScript Tutorial

The Embed object references objects that is embedded within a Web page using the HTML tag.

Embed is typically used for audio and video files.

Embedded objects are referenced by either the embeds array or by name.

    <title>Accessing an embedded object by array</title>
    <script language="JavaScript">
    function stopsong(){
    <embed src="your.midi" name="your" width="100" height="50" AUTOSTART="true">
    Click on the stop button to stop playing the midi file.
    <input type="button" value="stop" onCLick='stopsong()'>