Most voted "javascript-events" questions
None
Learn more…279 questions
Sort by count of
-
0
votes1
answer299
viewsUpload file with pure javascript, (Crawler) inputar file
I am crawling a web page and there comes a time when I need to upload a file, this Crawler is to test a system. What I need to do is with the pure javascript inputar a document on the following…
javascript html input javascript-events web-crawlerasked 5 years, 10 months ago Felipe Tolentino 11 -
0
votes1
answer495
viewsElement event created after DOM loading
Next: I have a page where requests will be made. On this page, the user chooses the item and can, if desired, add extra items to this item, for example "more cheese". When I insert this "more…
-
0
votes3
answers823
viewsOnclick works only in the second click
In this code Onclick only works after the second click <!DOCTYPE html> <html> <head> <title>teste</title> <style type="text/css"> div{ height: 100px; width:…
javascript-eventsasked 7 years, 9 months ago Soreze martins 95 -
0
votes1
answer63
viewsWhat’s wrong with my Javascript scroll tag body code?
Look at my personal code, my scroll is on the tag body, but it doesn’t work, I’ve done everything and nothing my scroll ta na < body > and still doesn’t work, what’s wrong ?…
-
0
votes1
answer156
viewsHow to catch click action in Year Calendar
Good morning ! I’m beginner and I’m having trouble catching the action of Click in my Calendar. https://www.bootstrap-year-calendar.com/#Examples/Full%20example I need to do exactly this above, but…
-
0
votes1
answer60
viewsWhy is the sum returning 0 and only works when I place the variables as local?
when I place var n1,N2 and s inside the sum Function, only then the result turns out right! because? I’m a beginner. /*variaveis dos elelentos html*/ var dr1= document.querySelector('input#txtn1')…
-
0
votes1
answer121
viewsValidate a Textbox array in Javascript?
Hello my doubt is the following, I have a js function like this: function testeCampos(elemento) { //Recebe lista de campos para valida��o var camposArray = new Array(); camposArray = elemento;…
-
0
votes1
answer81
viewsDelete the clicked image from the Storage location
Basically I made a system to favorite images by clicking to save in Storage location. let favorites = JSON.parse(localStorage.getItem('favorites')) || [] localStorage.setItem('favorites',…
-
0
votes0
answers48
viewsAdd items in the list and click the remove items button and add other items instead
I have tried it in several ways and so far without an exact success, for now what I want in the application is that I type the number in the input, and when I click enter, the numbers are aligned in…
-
0
votes0
answers39
viewsHow to implement a "Listener" in javascript for screen viewing?
I need to implement a change in my code so that when I change DIV, IE, stop viewing the page, the sound that is running automatically stops, as already happens with the videos of Facebook/Instagram…
-
0
votes0
answers304
viewsHow to rotate and move the canvas with the keydown?
Talk guys! I’m a beginner in JS and HTML. There’s a lot I understand the reasoning but I get in the way of coding. I’ll try to explain what I’m trying to do. I am drawing a triangle (called Jack),…
-
0
votes2
answers21
viewsProblem using loop addeventlistener
After creating a series of tags <button>, the idea was to change the color button if the user hovers the mouse on any of them. The problem is that it doesn’t work and I don’t know why. Can…
-
0
votes0
answers19
viewsJavascript - Message before the user closes the page (without using onbeforeunload)
I would like to know how to display a message before closing the page, which in my case would be confirmation, as what happens on this site: http://processamentodigital.com.br/ So far I only found…
-
0
votes2
answers55
viewsJavascrit keypress event does not work on mobile
The Javascript code below, which serves to "bar" character > (asc 60) only works on desktop devices and not on mobile devices. <textarea name='notes' id='ta' wrap='physical' cols='65' rows='8'…
-
0
votes1
answer66
viewsHow to return to initial value after an event change
I’m with this code: let inicial = 0 let vPag = 3 const numeros = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]; render() function resultadoPag(pagina){ vPag =…
-
0
votes1
answer1030
viewsHow to make a POST request on the browser console?
Good night, you guys! I’m studying penetration tests on an attack-oriented study site. In order to register I have to "hack" the registration page. Basically I have to enter a function in the…
-
0
votes1
answer582
viewsAngular Typescript input change Event
I have an input field that starts with a number('.2-2'). This input is updated when a select field modifies its value. When this field is modified, the value of the numver input does not obey the…
-
0
votes1
answer299
viewsJqgrid calling a function by clicking on a cell passing the line id
Good morning, I need 2 help from you. First time with Jqgrid. 1- I need to add another column on the grid with an image that will call a modal by passing the value of the line ID. 2- I also need to…
-
0
votes1
answer29
viewsFunction running as soon as the page loads
With the following codes As soon as I load the page in the browser is already displayed the result in the console Is this standard for Avascript or is there something wrong with my code? How to…
-
0
votes2
answers745
viewsAngular Eventemitter 4 does not work
I have a.service Profile that broadcasts an event for two components that don’t communicate. By clicking on the Profile Component link, it triggers the…
-
0
votes2
answers84
viewsindexof is not recognized inside the for
Hello I am trying to run this code so that it captures all the links of a page, it works all ok, the problem is that I want to find links that contain a certain word using index but is giving the…
-
0
votes5
answers505
viewsIs it possible to listen to multiple buttons with a single addeventlistener() ? If it is possible How to do it with pure javascript?
</div id ="num-vol"> <div> <button type="button" class="quina" value="1">01</button> <button type="button" class="quina" value="2">02</button> <button…
-
0
votes1
answer166
viewsevent with javascript scroll
I have the code below creating the fadein and fadeout effect with the Animate.css library in a scroll event, but when the event occurs applying fadeOut, it reappears until it moves the scroll, and…
-
0
votes1
answer49
viewshow to create output event in JS click
I am using this function for when an icon is clicked the menu disappear. let sidebar = document.querySelector('.sidebar-page') let sidebar_toggle = document.querySelector('.sidebar-toggle-box')…
-
0
votes1
answer135
viewsJavascript onClick event does not work with data-modal - Asp.Net Core MVC
I have a Datatable in my Index where the lines are loaded using Javascript. The Edit, Details, Delete and History buttons are created together. They all open in a modal window (the modal block is…
-
0
votes2
answers110
viewsTrigger two functions with separate onscroll events - JS
Good morning, I need a help, I have two functions that use the onscroll event, a function to appear a "Back to Top" button where when it is presented to the user it can be triggered and will be…
-
0
votes0
answers290
viewsadd attribute to an unknown select option or more
I have a code that dynamically defines input fields. In one context, I have several selects being defined, and I do not previously know the name or your id. Select inputs and selects options are…
-
0
votes1
answer74
viewsDoubt with Function in Java
I’m trying to figure out what happens after clicking a Ubmit button on one page, to do exactly the same thing on another. On the page I’m looking at and the code is written this: <button onclick=…
-
0
votes1
answer40
viewsMenu Javascript Getid
I have a menu that has a hoverline effect ("a line that runs down the clicked element!") with Javascript, but it is created using getId by pulling the element ID. The challenge is to duplicate the…
-
0
votes2
answers508
viewsLoading script.js (external) using Domcontentloaded?
I’ll introduce my test code summarized for better understanding. index php. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible"…
-
0
votes1
answer37
viewsAngular: Problems with Touchevents
I need to detect a touchstart, one touchend and a touchmove to make a selection of days as the user drags his finger on the screen. However touchmove apparently not made for this purpose. As an…
-
0
votes1
answer33
viewsHow to update the Index of a field using Javascript in Asp.net MVC
I’m creating fields dynamically based on a List. When I remove a field, I need to reorder them using javascript, but I am facing problems, because all fields are reordered Indexes, except those that…
javascript asp.net-mvc asp.net asp.net-mvc-5 javascript-eventsasked 6 years, 7 months ago Master JR 1,853 -
0
votes1
answer42
viewsChrome notification does not appear
Good evening, I’m running a code to present a notification: if(Notification.permission === 'granted' && !this._active) { let n = new Notification(this._activeContact.name,{ icon :…
-
0
votes2
answers336
viewsHow to prevent an addeventlistener from running several times in a function?
I will explain my situation. I have a function that displays a certain ad to the user in the application. After viewing this ad, I call an addeventlistener, who passes a CLOSE event. After this…
-
0
votes1
answer237
viewsUpdating date and clock
I am creating a clock from an informed value, the problem is that the clock is not being updated. The other problem is that the exhibition is reversed, the month is coming before the day. What am I…
-
0
votes1
answer1323
views[Angular][Bootstrap] -Open and close Collapse effect with just one click
I am wanting to perform a Collapse effect at the time I change item in the slider below. When I change the item, I receive from the service, various information recharging my child component…
-
0
votes1
answer37
viewsChange information with JS-JQUERY
I am trying to change a certain value within my html code, through JS-JEQUERY, but this not changing, my logic is wrong ? Follows the code: var valor = "texto"; $('.botao botao-comprar principal…
-
0
votes1
answer621
viewskeycode - Javascript
Good evening my dear, I am making a 'Function' in javascript but it is not running in my browser Chrome. function move(){ var obj = document.getElementById("dv1"); var tecla = KeyboardEvent.keyCode;…
javascript-eventsasked 6 years, 5 months ago Jorge Borges 63 -
0
votes0
answers103
viewsHow to send to the back end an Array inputFiles via form?
I have a form that besides the input file has other inputs like for example the input name.. select type... In the input file I need to get more than one file, I got this with help from the people…
-
0
votes1
answer48
viewsError while performing data deletion
When I click the remove button I remove all my line with this code, but when creating a new user it is not being heard by .click() inserePlacar = () => { let corpoTabela =…
-
0
votes1
answer28
viewsPlace label Display="block" when passing over the image and removing Display="None"
I want to do an effect with Javascript, when hovering the mouse over the image you need the caption to appear and when removing the mouse I want it to be hidden. However, I cannot achieve the…
-
0
votes3
answers598
viewsHow to change the "src" attribute of a <script> tag using Javascript?
I want it from the same index.html can change your content using two files .js different. In short, I want to change the .js without changing page html, Type: <html> <head> </head>…
-
0
votes1
answer50
viewsJS variable does not save value
My JS variable is not saving a certain value, the idea is that by clicking on the checkbox and sending, the user receives the number equivalent to that checkbox. However it shows the value and then…
-
0
votes1
answer19
viewsI cannot make the Purchase Value appear in the given field
I need to create a script that makes the total purchase amount split and the split value appear in the Total Value field. I can’t identify what’s missing in my code <form> Valor da Compra…
-
0
votes0
answers52
viewsFilter records from a table through any data entry field
Good morning, what I am trying to do is the following, I have two fields with inputs, 1 for Seller and another for Customer. Below these fields I have my table that loads the data that comes from…
-
0
votes1
answer59
viewsHide an element when the screen is in a certain pixel in Javascript
Friends, I would like to hide an element of the page when the screen is on a certain pixel! I got in this format, but when I open screen on the given pixel, the page Showing the element, the element…
-
0
votes1
answer580
viewsHow to make a button type "button" perform a javascript function instead of performing Submit
I have more than one Button inside the form. And I need one of them to perform a javascript function while the other performs Submit. But it turns out the two of them are performing Ubmit, and I…
-
0
votes1
answer119
viewsCan anyone tell me why the "#obj" doesn’t move?
/*ignorem o que tem a cima, o importante é na 'areaTestes', onde a bola não se desloca para baixo, sendo que eu estou chamando a função a cada 1s, ela não deveria descer?*/ <!DOCTYPE html>…
-
0
votes2
answers116
viewsSelect options does not work using jquery
With this select <label>Quantos módulos fiscais a sua propriedada tem:</label> <select id="fiscalModule"> <option value="minifundio">até 1 módulo fiscal</option>…
-
0
votes1
answer49
viewsScroll through a JS object again after swapping the <option> inside a <select>
I need to scroll through an object again after changing the option in the tag That’s my little object: const data = { "MG": [{ "slug": "belo-horizonte", "nome": "Belo Horizonte", "num": 20 }], "SP":…