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 7676081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:07:00+00:00 2026-05-31T17:07:00+00:00

I have embeded a music in a webpage using this code: <embed src=upload/gnossiennes.mp3 autostart=true

  • 0

I have embeded a music in a webpage using this code:

<embed src="upload/gnossiennes.mp3" autostart="true" loop="true" hidden="true"></embed>

Then I am using this javascript code to start/stop it:

<script type="text/javascript">
    function play() {
        document.embeds[0].play();
    }
    function stop() {
        document.embeds[0].stop();
    }
</script> 

<span><a href="#" onClick="play();">START</a></span>
<span><a href="#" onClick="stop();">STOP</a></span>

This works only in IE but not in Chrome, FireFox and Opera. What can be the problem? (this is the only embed in the page so I guess document.embeds[0] is only referring to this embed and shouldnt be the problem, unless this array does not exist in other browsers!

  • 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-31T17:07:01+00:00Added an answer on May 31, 2026 at 5:07 pm

    Well referencing one <embed> could be fatal for prospective uses of more embed tags. If you simply want to start and stopit then simply create and remove it as a DOM element. Here was a similar question and had the same solution

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

Sidebar

Related Questions

I have a Vimeo embeded video using their code(iframe) on my site. <iframe id=movie
Im using ASPxPopUpControll in which I have ASPxCallBack panel. THis CallbackPanel was embeded there
Hi I have a plugin.dll which contains this all npp functions I have embeded
I have a COM object embeded in ASP.NET page using <object classid=clsid:XXX...> . It
I have a UK map made as a flash/swf movie. This map is embeded
I have just embeded a javascript feed on this website it appears just fine
I have a embeded record in delphi like this: TKernel = packed record State:
I have flash embeded on my page but then i am using jquery to
I have the following code embeded in a class.Whenever I run distToPoint it gives
right now i m using this code for playing youtube videos <?php // Replace

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.