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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:07:53+00:00 2026-06-12T00:07:53+00:00

I was reading up on some JavaScript to try and create my own slider

  • 0

I was reading up on some JavaScript to try and create my own slider and I came across something that confused me a little. There was a CSS rule that was as follows:

html.js #slideshow .slides img
{
    position: absolute;
}

The explanation said that the rule would only be applied if JavaScript was available. Now I’m a bit confused… Would this rule be applied if JavaScript is available in the browser? Or if the file “html.js” had been included in the html page, or if any JavaScript files were included?

Thanks in advance.

  • 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-12T00:07:54+00:00Added an answer on June 12, 2026 at 12:07 am

    The page you saw is probably using Modernizr. It is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser and works by adding a class “no-js” to the HTML element and when the page loads Modernizr replace it with set of rules that you’re testing.

    Check Modernizr website for more details if you want to test specific feature in a browser.

    Of ir you don’t want to use Modernizr you can do it with JavaScript by placing this directly within your <title> tag :

    <script>
        document.documentElement.className = document.documentElement.className.replace(/(\s|^)no-js(\s|$)/, '$1' + 'js' + '$2');
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was reading some of Facebook's JavaScript, and came across a curious function that
I was reading some online material on reserved JavaScript keywords and I came across
I need to create a string in javascript from some text that the user
These days I am reading some javascript source codes,however I found some syntax that
I've been doing some javascript reading, and I've gathered that a closure has access
So I've got this PHP that's writing some JavaScript that looks something like this:
Reading some Verilog code, there seem to be two ways of defining arguments in
I am reading some book and I have encountered a piece of code that
I am reading some materials on Java serialization and found that, for self defined
I've been reading and doing some testing and found that the command. Length of

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.