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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:06:24+00:00 2026-06-01T16:06:24+00:00

I am trying to create dynamic HTML5 range input to control volume in my

  • 0

I am trying to create dynamic HTML5 range input to control volume in my game.

The idea is to have it over my canvas.

Here is what the code looks like :

    var slider = document.createElement('input');
    slider.id = "volume";
    slider.type = 'range';
    slider.min = 0;
    slider.max = 1;
    slider.value = 0.5;
    slider.step = 0.1;
    document.body.appendChild(slider);

The slider appears, but not the good way. On chrome, just the cursor appears and not the entire slider, and I can’t move it. On the inspector the element exist and is okay.

    <input id="volume" type="range" min="0" max="1" step="0.1"> on chrome

On firefox, it just doesn’t appear.

<input id="volume" type="range"> on firefox

So I’m just wondering why my slider doesn’t appear correctly. Is there anything I’m doing wrong ?

PS : I already tried modifying node orders or zIndex and stuff like that.

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. Editorial Team
    Editorial Team
    2026-06-01T16:06:25+00:00Added an answer on June 1, 2026 at 4:06 pm

    Your code works correctly in chrome. Consider this example:
    http://jsfiddle.net/webdevel/Qmvam/

    It might happens if you are trying to create element dynamically before DOM is ready.

    Firefox doesnt support it yet.

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

Sidebar

Related Questions

I am trying to create a dynamic bar in HTML using javascript. I have
I am trying to create some dynamic html out of some data from db.
I am trying to create dynamic menus from the database using the following example
I am trying to create a dynamic pagination system for my website and I've
I'm trying to create a dynamic datagrid in Flex. The data is coming back
I am trying to create a dynamic hyperlink that depends on a value passed
I'm trying to create a dynamic grid using ExtJS. The grid is built and
I am trying to create a Dynamic Dropdown menu class which contains a class
i am trying to create a dynamic multioption select using dynamic values for a
This is quite frustrating. I am simply trying to create a dynamic text and

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.