Creating and handling JavaScript events inline in HTML or through a script.

learn more… | top users | synonyms (1)

2
votes
2answers
45 views

Using this inside an event handler

I was trying to find the meaning of this keyword inside event handler function in the DOM level 3 event spec. As per my experiment this refers to the event.currentTarget object. Is this behavior ...
0
votes
2answers
38 views

How can I trigger onblur from a ul li?

I am essentially highlighting each li when clicked, and want to "un-highlight" the clicked li when clicking elsewhere or tabbing out (by effecting the background-color property). This behavior would ...
1
vote
1answer
12 views

KineticJS: Clone Duplicates Classes Custom Events

I create some custom events in the constructor of a KineticJS class this.on('mouseover', this.mouseOver); this.on('mouseout', this.mouseOut); this.on('dblclick', this.dblclick); When I ...
0
votes
2answers
51 views

On click photo change

I would like to create a function where I can choose from a few photo's and if I click on one, it should change in the big frame which is also shown (photo). I think I might messed up the selectors. ...
2
votes
10answers
135 views

Can someone please explain e = e || x? Why assign e to e?

Can anyone explain what this statement means? e = e || x Specifically, e = e || window.event This appears in a chunk of code I am looking at. I'm not at a complete loss, however My ...
0
votes
2answers
25 views

Javascript onclick fires on page load

Just starting out with front end development here, but despite my assuredly poor practices I've been enjoying things a lot. Basically I'm trying to add an onclick function to an element when the page ...
2
votes
3answers
49 views

object has not method error in javascript

I am using following code but it returns following error Uncaught TypeError: Object [object HTMLAnchorElement] has no method 'userInput' Here is the code jsfiddle var ClickEvent = function ...
0
votes
1answer
21 views

Click on dynamically added link on KeyUp with jQuery

I use jQuery to add some HTML to the DOM. After the insertion I would like to create an eventhandler which is called on keyup and clicks on the link added to el. However, jQuery does not find the a ...
0
votes
0answers
11 views

Backbonejs collection fetch on user settings update

I am working on backbonejs application and ran into the following issue. I have a view that attached to user settings model and it allows to change settings. I have second view that show some content ...
1
vote
2answers
34 views

How to stop propagation of all events

I wonder how to stop the propagation of all types of events when they reach a certain element. I have thought function stop(e){ e.stopPropagation(); } function stopEvents(el){ var events = ...
0
votes
0answers
9 views

Playlist is not getting cleared in embed vlc media player using javascript

Trying to incorporate online radio streaming to one of my client . Playlist is not getting cleared and not able to play next pointed URL. Below is the html code for the same. Let me know where I am ...
3
votes
2answers
54 views

A Javascript event listener's anonymous function keeps returning the same value?

Hey I was writing a code that basically adds event listeners that call a function with the a fragment of their dom object's id, but every time I click an object with the listener It just gives me the ...
0
votes
0answers
12 views

Handle JavaScript in Android

I have a php file on server which has a button and its onClick is handled like below. <a href="javascript:loadBookShelf();"><img border="0" src="../../Images/store.png"></a> ...
0
votes
3answers
35 views

How to get Mouse-Entered Element ID?

Is there any solution to get object id while mouse entering it? Something like this: mouseenter(function () { alert(ObjectName); }); MORE: Suppose that I have tens of DIV in my page and I want to ...
0
votes
3answers
35 views

Cannot add click events to list items

This is my first foray into using Javascript with HTML. I'm trying to add click events to the list items in an ordered list, but something about the way I'm doing it isn't working. Can somebody shed ...

1 2 3 4 5 587
15 30 50 per page