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

  • SEARCH
  • Home
  • 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 6099381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:16:00+00:00 2026-05-23T13:16:00+00:00

How do I add background music to a web page? So that when the

  • 0

How do I add background music to a web page? So that when the visitor opens the page, the music will auto play.

I have tried <object> <embed> and <bgsound> but they are all not working in firefox. Why?

  • 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-05-23T13:16:01+00:00Added an answer on May 23, 2026 at 1:16 pm

    The <bgsound> tag is Internet Explorer-specific and will thus not work in other browsers such as FireFox. The <embed> tag should work in FireFox if you use it correctly. It will use a browser plug-in to play the sound. Below is an example:

    <embed loop="true" src="sound.wav" hidden="true" type="video/quicktime"></embed>
    
    • loop="true" specifies to play the sound repeatedly.
    • src="sound.wav" specifies the relative path of the sound file to play. The variety of formats you can play depends on what type= you specify.
    • hidden="true" indicates to not show the media player’s interface. Hide it if you want the user to not be able to pause, stop, or navigate through the sound.
    • type="video/quicktime" specifies to use a Quicktime component, which means the client must have Quicktime installed. Use application/x-mplayer2 for Windows Media Player or audio/x-pn-realaudio-plugin for Real Player audio. Quicktime plays more formats and is probably what you will want to use.

    Alternatively, use <object> in a very similar way. An example is below:

    <object data="sound.wav" type="video/quicktime" width="0" height="0">
        <param name="filename" value="sound.wav">
        <param name="autostart" value="1">
        <param name="playcount" value="true"> 
    </object>
    

    Keep in mind that, like the <marquee> tag, background sound on a web page is generally frowned upon because it is often obtrusive and annoying. Also, as the user switches between pages or causes post-backs, the sound will restart from the beginning. Only use audio formats that are highly compressed, meaning they have small file sizes, or the sound will not play for several seconds while it downloads to the client machine.

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

Sidebar

Related Questions

I my application I have a background music that plays when the program starts.
I have a UIView to which i add a background image. Then to that
On a customer website, I have to add a background image for only a
With ffmpeg, I see how to add music file as background for a video,
I am building an android app in which I have to add a background
I have a page on an iPad that is setup so there are a
How do I add background image on this code? i tried everything but the
With the example below, I need to add padding and background-color properties to the
I specifically want to add the style of background-color to the <body> tag of
Background: i'm using InstantRails 2.0 I wanted to add a new column to an

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.