Category "html"

ReferenceError: Cannot access 'Block' before initialization

I'm writing some js code for doing tetris for a school project, and I got stuck with a class I wrote. This is the code: let canvas = document.getElementById

How do I use pyscript in my HTML code and return output

I am trying to call my python function created. But not getting any output and no resource how to achieve. Code : <!DOCTYPE html> <html> <head>

pycharm handling of <div> tag (no autoclosing)

Im editing html and i use a lot of div tags with bootstrap. for example : <div class="carousel-item"> <img class="d-block i

HTML : why doesn't drag events work in android?

I have a project that uses ondrag events(like ondragover and ondragend) but these events doesnt fired in android.i converted html to apk with Website 2 apk buil

How to override the existing onclick() methods of html anchor tags

In a HTML page there are couple of anchor tags with onclick() methods - of which codes I cannot or must not change. However, I can add a new js file or jQuery t

Referencing jQuery library on Google APIs and Relative path

In my Asp.Net Web Application, I have given a reference to jQuery library on Google APIs as below: <script src="https://ajax.googleapis.com/ajax/libs/jquery/

How do I record musical notes as they are played with the Web Audio and Media Recorder api's?

I'm trying to create a little app that records sounds from audio nodes as they are played using the Web Audio API, but have run into a few problems. I have two

Keep selected theme on page refresh using HTML, CSS and JavaScript

I would like to keep the selected theme when refreshing the page as well as across all other pages. I've seen other examples but I don't know how to implement i

HTML-Table combine two filter scripts

I have two filters, one is a =>greater than or =<less than for one column and the other is a =>greater than and from an input box for a different colum

how to add an open "other" field in an http radio form

I want to make an open "other" field in an HTTP radio form like in the following picture. is it possible? i had in mind something like this: class="text"><

How to pass all user's data when clicking edit button?

I created a display page using php where all users records are displayed in a table and there are delete and edit buttons to manage users, for the delete option

pointer events: none; not working on <input type="number"; chrome

i have set the css for the following input element with type number element to pointer events none however if i spam click the exact point where the current val

Display Data from MYSQL using PHP Dropdown

I need to display data from the 'Members' table based on the selected 'grad_date' from a drop down. I have been trying to do it for a while now but have struggl

Insert scroll button horizontal using jQuery

I am trying to replicate this example into my own coding. The List tabs are generated dynamically using JS and each have their table (also generated using JS).

webpage whites out when scrolling up or down

https://habitat-commons.herokuapp.com/ When you scroll up or down on this site the divs white out and rerender no matter how fast the internet or how many times

event listener's event is being used more than once

I have this weird bug that whenever I want to add an item/card to the list and I cycle between clicking the text input and then clicking outside of it, the list

How I can connect each name in list using id concept (python)

I created a list of users page and user profile page and I want when click on any name in the list it should show that user profile page. in .html <table cla

How to use overflow with flex-grow

I have this code: html, body, #container { width: 100%; height: 100%; } #container { display: flex; background: #ddd; } #width { width: 200px;

Get data that's in the JSON but not in the table/HTML

I'm trying to get the information that is in the url but JavaScript returns to the HTML table "undefined". Does anyone have any idea what mistake I might be mak

How to center text in vertical in CSS [duplicate]

what dose "vertical-align:middle;" do? It doesn't center the text in vertical. How to center text in vertical in CSS #sectionArea { vert