Questions tagged as 'event-listener'

4
answers

Creating and using custom events

Searching found Event and CustumEvent , both can be used to create events, and to control subscriptions, removals and issues of the event you should use EventTarget , but I did not understand how they work, for example, like m...
asked by 23.09.2018 / 03:02
1
answer

Problem with running EventListener

if((document.getElementById("avatarZica").innerHTML == "")){ document.getElementById("avatarLegal").addEventListener("click", function(){ document.getElementById("avatarZica").innerHTML = "<canvas class='emscripten' id='can...
asked by 20.03.2017 / 20:31
1
answer

Alternatives to beforeunload event listener in FF

I'm working on a website and JavaScript has an important role on the front end, I was using the beforeunload event to always check if the user has edited anything on the page to warn you of possible information loss. It turns out that...
asked by 26.01.2017 / 12:03
0
answers

How to implement a "listener" in javascript for screen viewing?

I need to implement a change in my code so that when I change DIV, that is, I stop seeing the page, the sound that is running stops automatically, as is already the case with Facebook/Instagram videos on web platforms. I made the followin...
asked by 08.02.2018 / 15:01
0
answers

Equivalent to 'eventListener' in PHP

I have a series of PHP classes that build my HTML structures based on Bootstrap CSS already added with their respective actions in Javascript, example this call: $VIDB_button = new \vidbModel\buttonElement(); $btn = $VIDB_button->color('pri...
asked by 30.10.2017 / 12:34
1
answer

How to implement a listener in a video?

Well, I have a button and when I click it, it will call a function that opens a page with a fullscreen video with autoplay="true". IT HAPPENS THAT, after finishing the video I need to redirect the user to another html page. Can someone tell me a...
asked by 25.10.2017 / 16:49
2
answers

Javascript does not load all functions

Have one (one | one) (great | great) (day | late | night)! Well then! By inserting many functions into a <script type="text/javascript"></script> my code will not execute all of them! The browser console does not show...
asked by 19.06.2018 / 15:10