Created
September 12, 2012 03:06
-
-
Save ryu22e/3704018 to your computer and use it in GitHub Desktop.
HTML5/JavaScriptのWindows 8アプリで、Windows標準で用意されている音を鳴らす
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
srcに設定できる値の種類は以下のページ"src"の項目を参照。 | |
http://msdn.microsoft.com/en-us/library/windows/apps/br230842.aspx | |
--> | |
<audio id="alarm"> | |
<source src="ms-winsoundevent:Notification.Default" /> | |
</audio> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementById("alarm").play(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment