Skip to content

Tag: html

make a div show on page load

This is a navigation toggler that toggles between showing different divs id=(home, profile,deposit,withdrawal). I need the div id=home to show by default immediately the page loads. Answer I made a function that takes one String argument. Hiding all divs, and after then set the display of the first div that t…

CSS Printing Properties using Textarea

I have to print several textarea elements in my code. Here is an example of one: I would like the text to be printed on the same line as Division and push the text to the next line once it runs out of space. How would I fix this issue? Answer I correct the HTML part, because there were some

Dynamically load Javascript file one at a time

I am creating a loader. Since I use Firebase, I need to load the specific script files dynamically in the exact order. Here are the code in my HTML files. JsPack.js is a loader that will load specific scripts one at a time. And here is my current jsPack.js file. This works perfectly in the exact order. Howeve…

How to make a dynamic value not a cookie

HI. I am very new to both JavaScript and HTML. In my cool website I have this button. I want it to add 1+ to the var sum whenever someone presses it, so that it’ll become a huge number over time. But there is a problem. The var sum keeps resetting, and I think it has to do with the