Aapka Apna blog jo kre apki problem Solve

Thursday, 4 July 2019

Music App With Javascript || Javascript Mini Project

Music App With Javascript

 Javascript Mini Project

Music app with javascript code



<!DOCTYPE html>

<html>

<head>

<title> My Music app</title>

</head>

<body>


 <center>

 <h1> My Music App </h1>

 <a onclick="myplay()" ondblclick="mypause()">

 <img src="image.jpeg" width="400px">

</a>

</center>


 <script type="text/javascript">

   

  var music = new Audio();

  music.src = "songs.mp3";


  const myplay = () => {

  music.play();

 window.open("https://technicaldestination.blogspot.com")

}


 const mypause = () =>{

  music.pause();

 }


 </script>

</body>

</html>





Share:

0 Comments:

Post a Comment

loading...