-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexam.html
More file actions
23 lines (21 loc) · 836 Bytes
/
exam.html
File metadata and controls
23 lines (21 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html lang="kr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>음악 플레이어 팝업</title>
</head>
<body>
<button id="openButton">팝업 열기</button>
<script>
const openButton = document.getElementById('openButton');
openButton.addEventListener('click', function () {
const popupWindow = window.open('', 'Music Player', 'width=400,height=300');
const audioTag = document.createElement('audio');
audioTag.src = 'your-audio-file.mp3'; // 음악 파일 경로
audioTag.controls = true;
popupWindow.document.body.appendChild(audioTag);
});
</script>
</body>
</html>