RetroZilla/webshell/tests/viewer/samples/beeptest.html

19 lines
368 B
HTML
Raw Normal View History

2015-10-21 05:03:22 +02:00
<html>
<head>
<title>Sound Service Beep Example</title>
</head>
<body>
<script>
var sample = Components.classes["@mozilla.org/sound;1"].createInstance();
sample = sample.QueryInterface(Components.interfaces.nsISound);
dump("sample = " + sample + "\n");
</script>
<form name="form">
<input type="button" value="Beep" onclick="sample.Beep();">
<form>
</body>
</html>