All Questions
Tagged with eventhandler html
27
questions
-1
votes
1
answer
54
views
Calling Function from Click Event in Leaflet
I am hoping there are some Leaflet experts here who can explain what I'm missing in the code below.
I am only a hobbyist programmer so I apologize if my terminology doesn't make complete sense.
I was ...
0
votes
0
answers
16
views
Facing issues with dropdown button in Flask
I am building a basic search page in Flask.
When the page loads, I enter the search bar and get the results.
Then when I click on the drop-down, I can only select 1st option, "Organization" &...
2
votes
1
answer
265
views
Serialising an HTML element that has event handlers
I am currently making a website for a class that I am in. It is supposed to be a store, made in Pure HTML, CSS, and JavaScript (no libraries including jQuery). I am currently attempting at making a ...
0
votes
2
answers
494
views
Automatic change of input fields through Event Handler "onkeyup"
I am pretty bad at JS but I need some help at a task in order to prepare for a small exam on web technology.
The task:
I have to write a code where two input fields have to be displayed. The sum of ...
0
votes
0
answers
211
views
React- Pass event to inner child
I have an element and a child element, both have an event handler, however, the parent handler seems to block the child handler.
I have tried to use https://reactjs.org/docs/events.html#supported-...
0
votes
0
answers
422
views
when to call navigator.registerProtocolHandler
I am trying to call navigator.registerProtocolHandler while loading my website so that it sets my mail app as the default mailTo handler. If it is working, it will show a dialog asking user whether to ...
0
votes
1
answer
112
views
How to handle keyword boxes with spans in JavaScript / HTML / CSS
I am trying to build a variable number of keyword boxes (the number of keyword boxes is handeld by php).
For better understanding I made three hardcoded html keyword boxes.
The final result should be ...
0
votes
3
answers
744
views
add OnClick event on a div
I'm trying to add an event of a button that is in a div.
HTML :
<template id="modele-panier" type="text/AhuntsicModele">
<div class="dialog-item">
<table>
<tr>
...
1
vote
1
answer
240
views
How can I display a text in an image on html using the event handler onclick
<!DOCTYPE html>
<html>
<head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Squares</title>
<script type="text/...
0
votes
1
answer
119
views
Dynamically added element is forcing a reload
I have a table that has a range of elements inside of it.
I have registered some event handlers and add these elements dynamically through injecting new html.
Everything works for the original ...
1
vote
0
answers
602
views
Form on submit event not getting triggered [duplicate]
I am new to web dev and for a school exercise, I'm working on something where I want to execute javascript of form submit event.
<head>
<script>
function foobar() {
...
0
votes
1
answer
54
views
Why is onclick not working in JavaScript? [duplicate]
I wrote a simple code to learn Eventhandling in JavaScript but when I click on the button "Click" the function hello() does not work, why?
html file:
<!DOCTYPE html>
<html>
<head>...
0
votes
1
answer
730
views
Event Listener Scroll or Click
I have a web page with several sections.
To switch from one section to another I don't use scroll but everything is done by clicking (menu, pagination, arrows, etc...)
As soon as the user goes on a ...
0
votes
1
answer
348
views
Can [Element].onXXX be used to create a non-trivial hacking issue?
I have a technology where users can create HTML pages. When they are submitted, I externally check the script libraries (<script src=...>) on the page to ensure they are safe, and that there ...
0
votes
2
answers
910
views
ondrop affects target's parent
I've got one div in another div.
Both div have a ondrop property.
When I move an element in the child's dropzone, it calls the ondrop function twice. One time for the child and then one more for the ...