Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9163955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:33:56+00:00 2026-06-17T14:33:56+00:00

I have an SVG with some basic javascript interactivity, and I would love to

  • 0

I have an SVG with some basic javascript interactivity, and I would love to be able to put some audio into it as well.

To clarify:

  • This is for an SVG that is by itself, not inlined in HTML
  • I would prefer to avoid having to use a javascript library, but i can if it’s necessary.

Any insight on how this could be accomplished?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:33:57+00:00Added an answer on June 17, 2026 at 2:33 pm

    If you require a browser with support for HTML5 audio, then it’s possible to just put the audio elements in the svg (use the XHTML namespace for the audio element and its children). Last time I tried it didn’t require a foreignObject wrapper. Here’s an example showing how to do that (works in chrome, firefox and opera).

    It’s also possible to create HTML5 audio elements with javascript and use them inside the SVG.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some SVG embedded into a web page and need to copy a
Introduction I know some basic animation techniques for SVG using both Javascript and DOM
I have some SVG files that I'd like to create a PDF with. For
I have a page successfully asking for and parsing some raw SVG from a
I have an SVG I am building with Javascript. I load in a large
I have an SVG file.This file shows the outline of cartoon character(2D character). My
I have this svg: <circle cx=50 cy=100 r=50 stroke-width=0 fill=orange/> <polygon points=0,100, 50,50 100,100
I am trying to have a SVG which pulls some text from a .txt
I plan to have some (a lot of) objects inside of svg-object that will
I'm taking some information from some variables I have already defined outside this function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.