What is the “event” parameter that so often is defined for JavaScript event handler functions?

It means that every anchor element on the page ( a ) as well as any dynamically added anchor elements in the future will have a click event attached to them that will run whatever the function is passed in jQuery documentation of the live method the parameter event of the function that is passed in is the result of a click on an anchor element. If you are using Firefox with Firebug you can examine this object by doing this: $("a"). Live("click", function(event) { console.

Dir(event); }) When you click on an anchor you will then be able to see the whole object in the Firebug console.

It means that every anchor element on the page (a) as well as any dynamically added anchor elements in the future will have a click event attached to them that will run whatever the function is passed in. JQuery documentation of the live method the parameter event of the function that is passed in is the result of a click on an anchor element. If you are using Firefox with Firebug you can examine this object by doing this: $("a").

Live("click", function(event) { console. Dir(event); }); When you click on an anchor you will then be able to see the whole object in the Firebug console.

Sorry for a poor formulation. I meant what does the 'event' do – ajsie Dec 24 '09 at 3:30 have edited to clarify – Darko Z Dec 24 '09 at 3:31.

I think you were asking specifically about what an event is and not necessarily the live function. Event is a jQuery. Event (docs.jquery.com/Events/jQuery.Event) object which holds numerous things about the event including a reference to the clicked object.

U r right..i was:) – ajsie Dec 24 '09 at 3:31.

Event is, in this case, associated with the 'click' event that happens on every a tag in the HTML. It is an object that holds all the associated properties of the mouse click. Live is more effective than just binding an event, because it will attach itself to any a tags dynamically created after all of the event binding is done.

In javascript (not just specific to jQuery) the event object is an object that describes the event that just happened. W3C DOM standards specifies that the event object is the first parameter passed to an event handler. On IE, the event object is a global variable instead.So in regular javascript (without libraries like jQuery) you'll often find people write things like: div.

Onclick = function (event) { event = event || window. Event; // take care of IE .. } Most libraries like jQuery take care of this for you so you only need to do the W3C standard thing. The event object is the only standard mechanism of finding out things like mouse pointer xy location, which key is pressed etc. See: https://developer.mozilla.

Org/En/DOM%3Aevent.

In javascript (not just specific to jQuery) the event object is an object that describes the event that just happened. W3C DOM standards specifies that the event object is the first parameter passed to an event handler. On IE, the event object is a global variable instead.

Most libraries like jQuery take care of this for you so you only need to do the W3C standard thing.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions