зеркало из https://github.com/mozilla/pjs.git
18 строки
373 B
HTML
18 строки
373 B
HTML
<html>
|
|
<head>
|
|
<title>Sound Service Beep Example</title>
|
|
</head>
|
|
|
|
<body>
|
|
<script>
|
|
var sample = Components.classes["component://netscape/sound"].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> |