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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:13:25+00:00 2026-06-03T04:13:25+00:00

A simple page, with the button: <button id=MyButton>Hello</button> The problem is: I need the

  • 0

A simple page, with the button:

<button id="MyButton">Hello</button>

The problem is:

  • I need the button to show if Javascript is disabled
  • I need the button to be hidden if Javascript is enabled

A simple Jquery:

$('#MyButton').hide();

Isn’t sufficient as the button ‘flickers’, it loads and then hides itself and it’s very noticeable.

The one way I’ve found to make this work is by using JS to hide it immediately after:

<button id="MyButton">Hello</button>
<script>
    document.getElementById('MyButton').style.visibility = 'hidden';
</script>

This seems a bit ugly and breaking a couple of good standards rules, is this the only way to hide the button without a flickering effect?

  • 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-03T04:13:26+00:00Added an answer on June 3, 2026 at 4:13 am
    <noscript>
        <button id="MyButton">Hello</button>
    </noscript>
    

    The HTML NoScript Element () defines a section of html to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.

    MDN

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

Sidebar

Related Questions

I have a simple aspx page with a few TextBoxes and a submit button.
I wanted to create a page with a simple button which runs away from
I have a simple page that pops up a telerik radwindow on button click.
I have a simple test page with a single styled button. I'm using a:hover
I created a simple page with one button, then on the click event have
I have a simple page with two lists. Using jQuery I have set the
please try out this simple page: http://www.ynnova.it/ie9bug/tryit.html I use jquery 1.7.1 but I think
I have a simple page with one textfield and a submit button. I want
I am still new to Javascript. I am developing a simple page where I
I have a simple asp.net-Page with a button. <%@ Page Language=C# AutoEventWireup=true CodeFile=Default2.aspx.cs Inherits=Default2

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.