Announcement

Collapse
No announcement yet.

Opening audio link

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • dtommy79
    started a topic Opening audio link

    Opening audio link

    Hi,

    I've got this code

    HTML Code:
    <p style="text-align: center;"><a href="http://mysite.com/uploads/hermano.mp3" target="_self"><img src="http://mysite.com/uploads/audio-button.png" alt="audio-button" width="79" height="79" /></a></p>
    This displays an image linked to an audio file. When I click on the image, an audio player of the browser will open up in a new window.

    How can I do this so that when I click on the image, the audio file will play automatically without opening any player or window?

    Thanks

  • Glenn Vergara
    replied
    Use <audio> tag.

    https://developer.mozilla.org/en-US/...udio_and_video

    Leave a comment:

Related Topics

Collapse

Working...
X