Skip to content

Tag: dom-events

JavaScript inline events syntax

Is there any reason to use one of the following more than the others: And please do not spend your valuable time to tell me to use jQuery or attachEvent/addEventListener. It’s not really the objective of my question. Answer There’s no difference at all between the first two, in this specific situa…

Capture javascript event in IE Mobile

I need to detect the id of the element that generated an onchange event. This code work in most modern browsers: But it does not work in IE Mobile. I have tried the following code, and at least the event is fired and the handler function is called, but window.event is not available when event handler is calle…

image.onload not firing twice in IE7

It works in IE6, and FireFox; but for some reason not in IE7. Using ASP.NET on the Page_Init I populate a list of chapters that are links to the image in the book as well as a Javascript array which holds the pageIDs. ex. Chapter 1 –> href=”javascript:seePage(4);” Here is the actual code …