Results 1 to 1 of 1
02-08-2012, 11:12 PM #1Registered User
- Join Date
- Jan 2012
el[j] = document.createElement('input'); el[j].type = 'file'; el[j].name='work'+j; el[j].onChange='lookup(this.value)'; //el[j].class='filed'; el[j].className ="field";
Attaching Event Handlers in OOP
The simplest way to attach event handlers into your page is to insert them directly as attributes on the HTML tags of the object that will trigger them. To trigger an event handler so attached requires that the particular action that the event handler recognises be performed in relation to the object to which it is attached.
In general event handlers will be attached into a tag using code similar to the following (substituting the appropriate event name and function to run for the code in italics):
Hidden text. Registration and a minimum of 1 post(s) are required.
Thanks and share your thoughts.