안녕하세요, 저는 클라이언트 측 프로그래밍과 html로 새로운 클라이언트입니다. 나는 파이어 폭스와 다른 브라우저에서 다음 줄을 excute하려고합니다. 코드는 소리를 내야합니다. 문제는 코드가 작동하고 재생된다는 것입니다.파이어 폭스 소리가 들리지 않는다
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Untitled 1</title>
<script type="text/javascript">
function playsound()
{
var sound= document.getElementById("check");
sound.play();
}
</script>
</head>
<body>
<audio id = "check" preload = "auto">
<source src = "check.mp3" type = "audio/mpeg"></audio>
<input type="button" onclick="playsound()" value="play">