1,185,108 questions
Score of 1
2 answers
94 views
Can setting/retrieving properties on any HTML element be a security risk?
When assigning properties to a HTMLElement directly (so [Element].someProperty), it looks like anything goes.
You would expect that invalid properties either throw some error or are weeded out ...
Score of 1
1 answer
112 views
How do I fix main and footer auto align in grid display?
This is my first time coding, but I've recently been coding a personal indie website with css and html and I'm kinda stuck on how it keeps autoing to overlap. I can't quite fix it. I've tried messing ...
Score of -1
0 answers
53 views
YouTube video embed not working on Safari on webpage [closed]
I am using the code snippet to embed a YouTube video on a website page: https://www.onestorylab.com/work/listen-lights
<div style="position: relative; width: 100%; padding-top: 56.25%;"&...
Score of -6
0 answers
138 views
Joomla 4: 403 Forbidden error when saving custom HTML module containing inline JavaScript
I am running Joomla 4.4 with the Helix Ultimate template.
I want to add a floating WhatsApp button to all pages. The button HTML and JavaScript work fine in local testing.
When I paste HTML + inline &...
Score of 0
2 answers
310 views
Javascript if statement only runs once [closed]
I'm trying to create a mockup feature where you click on a tab and it pulls down a menu, and when you click on the tab again it goes back up. I managed to get it to work, but the Javascript only runs ...
Score of -7
1 answer
120 views
Should I put all the HTML styles in a root directory? [duplicate]
I've been learning HTML/CSS/JS in order to build a small website. I find myself copying/pasting different styles and font import commands into most of my index pages separately. This felt repetitive, ...
Score of -3
0 answers
90 views
Overlaying an imagemap onto a background video [closed]
Developing a website for my band where the goal is to have a hub of links. Clicking on each tv screen should lead you to each of our external links. I want the website to be more than a static image, ...
Score of -6
0 answers
58 views
jquery .hover function only works on click [closed]
I am using hover on my Cargo Site to play sfx when hovering over links/buttons/etc.. But it only works once the user has mouse clicked anywhere on the site. Is the script thinking that document ...
Score of 0
1 answer
142 views
Playing songs back to back in autoplay in a website
I'm using the code below to play two songs back to back in one of my webpages. It's part of a digital birthday card. The issue is that after song1 plays, it's like the page is not able to either see ...
Score of 1
1 answer
108 views
image getting cached on an <img> tag but not on background-image on a <button> tag [closed]
I don't understand why, but there is an image (`pfpFrame.png`) that works correctly when placed in the `src` of an `img` tag, yet fails to appear when set as the `background-image` of a button.
This ...
Score of -4
1 answer
177 views
How can I control scrolling in a website?
I am trying to make a personal website for myself, and I wanted to control the scrolling, so that after the first page, the user has to stop at a pre-determined point on the page. The problem is it's ...
Score of -7
0 answers
89 views
Flask Can't Call Python Function From HTML Button Using 'onclick' [duplicate]
I'm currently in the process of developing an admin/approval panel for my Python webapp.
Currently the app allows users to make Bank Time requests (for any overtime worked). Once the user submits this ...
Score of 0
0 answers
100 views
Why is the content of a <style> element emptied (WebI)?
In SAP BusinessObjects BI Platform 2025 (Web Intelligence), I use a cell with "Read contents as" set to HTML. The server only renders HTML elements that are on an allow list of permitted ...
Score of 1
1 answer
144 views
Can CSS anchor positioning be scoped per component without generating unique anchor names?
I'm experimenting with CSS Anchor Positioning for dropdowns.
I have several identical components on the page, and each button should anchor only the dropdown inside the same component.
For example:
&...
Score of -2
1 answer
159 views
Play two songs back to back in autoplay [closed]
I'm trying to play two songs back to back in autoplay. When I add this to my HTML it shows two control panels on the page. Trying to figure out why I get two?
<audio id="player" autoplay controls&...