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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:43:36+00:00 2026-05-10T20:43:36+00:00

I have to add either an embed tag for Firefox or an object tag

  • 0

I have to add either an embed tag for Firefox or an object tag for Internet Explorer with JavaScript to address the appropriate ActiveX / Plugin depending on the browser. The plugin could be missing and needs to get downloaded in this case. The dynamically added embed tag for Firefox works as expected. The dynamically added object tag for Internet Explorer seems to do nothing at all. The object tag needs the following attributes to function properly.

id ='SomeId' classid = 'CLSID:{GUID}' codebase = 'http://www.MyActicexSource.com/MyCuteActivex.CAB#Version=2,0,0,1'

Even a general working idea or method would be nice.

Thanks!

  • 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. 2026-05-10T20:43:36+00:00Added an answer on May 10, 2026 at 8:43 pm

    I needed to do this same thing and simply place all of the HTML needed for the OBJECT tag in a string in JavaScript and simply replace the innerHTML of a div tag with the OBJECT HTML and it works in IE just fine.

    // something akin to this: document.getElementById(myDivId).innerHTML = '<OBJECT id='foo' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'.....etc'; 

    That should work, it does just fine for me – I use it to embed Windows Media Player in a page.


    UPDATE: You would run the above code after the page loads via an event handler that either runs on the page’s load event or maybe in response to a user’s click. The only thing you need to do is have an empty DIV tag or some other type of tag that would allow us to inject the HTML code via that element’s innerHTML property.


    UPDATE: Apparently you need more help than I thought you needed? Maybe this will help:

    Have your BODY tag look like this: <body onload='loadAppropriatePlugin()'>

    Have somewhere in your page, where you want this thing to load, an empty DIV tag with an id attribute of something like ‘Foo’ or whatever.

    Have code like this in a <script> tag in your <head> section:

    function getIEVersion() { // or something like this    var ua = window.navigator.userAgent;    var msie = ua.indexOf('MSIE ');    return ((msie > 0) ? parseInt(ua.substring(msie+5, ua.indexOf('.', msie))) : 0); }  function loadAppropriatePlugin() {     if(getIEVersion() != 0) { // this means we are in IE         document.getElementById('Foo').innerHTML = '<OBJECT id='foo' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'.....etc';     } else {         // if you want to maybe do the same for FF and load that stuff...     } } 

    Does that help?

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

Sidebar

Related Questions

No related questions found

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.