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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:21:15+00:00 2026-05-30T15:21:15+00:00

I am trying to unhide a DIV element if my extension in Firefox is

  • 0

I am trying to unhide a DIV element if my extension in Firefox is not installed.

For this purpose i am using the following technique.

This doesn’t work in Firefox. it says

ExtensionNeeded is undefined.

I get the alert though. Please have a look at my code.

<div style="display: none;" class="alert alert-error" id="ExtensionNeeded">
                    <img style="visibility: hidden;
                        font-family: arial;" onerror="this.src='';alert('hello'); ExtensionNeeded.setAttribute('style','display:none;');" id="ffExt" src="">
                    <a onclick="ExtensionNeeded.setAttribute('style','display:none;');" data-dismiss="alert" class="close" id="CloseButton">×</a>
                    <h4 class="alert-heading">
                        Browser Extension Needed</h4>
                    <p>
                        SmartSignin needs browser extensions to work. Download the extensions by clicking
                        on the button below
                    </p>
                    <p>
                        <a onclick="window.location=('../Installer_files/release.xpi');ExtensionNeeded.setAttribute('style','display:none;');" class="btn btn-danger" id="ExtensionDownload" href="#">Download Extension!</a>
                        <a onclick="ExtensionNeeded.setAttribute('style','display:none;');" class="btn" id="DownloadLater" href="#">Download Later</a>
                    </p>
                </div>

Please help. I am picking my hair out on this.

  • 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-30T15:21:16+00:00Added an answer on May 30, 2026 at 3:21 pm

    ExtensionNeeded is a div not an object:

    <div style="display: none;" class="alert alert-error" id="ExtensionNeeded">
    

    if you want to get the ExtensionNeeded DOM element, query the DOM for it:

    var ExtensionNeeded = document.getElementById('ExtensionNeeded');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

trying to work out how to install zipArchive extension with MAMP, but not having
Trying to set RowHeight like this(in code): dgvTruckAvail.RowTemplate.Height = 48; Doesnt' work. I also
I am trying to hide and unhide the textbox using dropdownlist , so for
I am currently trying to unhide a DIV and then right after scroll down
The technique I have used to hide/unhide a div is as follows: $(# +
Trying to add the ability to delete a Folder using FTP and all subfolders
Trying to figure out how to do this. I have the style but I'd
Trying to run the following: JS: $('#my-modal').modal(); markup: <img src=\Images\Browser\file_types\d8d74cae-2186-42ad-a932-3aa4b75e0f12.png title=name: a3 onclick=Attachment_onClick( bfa9ec7e-d781-4523-a4ee-dd587f699c18)=
Trying to call this function in C without any real luck: int sendcommand(char str[256],
Trying to do this with a single query, but want to get a list

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.