But when I try to generate the same code in my separate window using Javascript, the player displays but nothing happens when I click the Play button. The code is here
This code works in Chrome and IE, but not in Firefox. It drives me crazy ! I tried using .ogg or .mp4 files with no success, can someone help me ?? Thank you !
To RandellDawson : thanks for your quick answer ! So I paste the complete Javascript function below. Here is how it should work
The main page displays a list of songs (the url is http://www.farhitournelles.fr/index_2.htm
When the user clicks on one title song, it calls a Javascript function called PfPlay_mp3(Fichier, Titremp3) with two parameters : the file name and the song title
The function does
open a popup window
write the audio tag with the file name as source, to display the mp3 player with controls
write the song title
write a link to close the pop up window
Here is the code
The most strange thing is that the code works with Firefox on Windows 7 but not in Windows 8.1, clicking on the Play button has no effect
The Firefox console shows no error