Top "Javascript-events" questions

DO NOT USE THIS TAG!

HTML <input type='file'> File Selection Event

Let's say we have this code: <form action='' method='POST' enctype='multipart/form-data'> <input type='file' …

javascript html javascript-events
How to fire an event on class change using jQuery?

I would like to have something like: $('#myDiv').bind('class "submission ok" added'){ alert('class "submission ok" has been …

javascript jquery javascript-events
window.onbeforeunload and window.onunload is not working in Firefox , Safari , Opera?

In my chat application I need to get confirmation from user , when my application closes. So I used the window.…

javascript javascript-events jquery
Getting the class of the element that fired an event using JQuery

is there anyway to get the class when click event is fired. My code as below, it only work for …

javascript javascript-events jquery
Run JavaScript when an element loses focus

I have a standard HTML input that I want to run JavaScript code when it loses focus. Sadly my Google …

javascript html javascript-events
Attaching click event to a JQuery object not yet added to the DOM

I've been having a lot of trouble attaching the click event to a JQuery object before adding it to the …

javascript jquery javascript-events onclick
Javascript onHover event

Is there a canonical way to set up a JS onHover event with the existing onmouseover, onmouseout and some kind …

javascript javascript-events
Intercept page exit event

When editing a page within my system, a user might decide to navigate to another website and in doing so …

javascript javascript-events internet-explorer
how to toggle (hide/show) a table onClick of <a> tag in java script

I want to show and hide (toggle) the <table> onClick event of the <a>. this is …

javascript asp.net html javascript-events toggle
Add event handler for body.onload by javascript within <body> part

We want to include a maps from Google Maps API in our document. The documentation tells to initialize the map …

javascript html javascript-events onload-event