Aapka Apna blog jo kre apki problem Solve

www.technicaldestination.blogspot.com

This website helps you to solve hacking problems

www.technicaldestination.blogspot.com

My blog help to users to solve hacking and programming errors.

www.technicaldestination.blogspot.com

if you see hacking news then follow me on instagram facebook blogger and youtube.

Showing posts with label Music App With Javascript. Show all posts
Showing posts with label Music App With Javascript. Show all posts

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:
loading...