| Author |
Where is the source code of onBlur() or onreadystatechange() eventshandlers , are they in Browser?
|
Himanshu Bhatnagar
Greenhorn
Joined: Sep 27, 2011
Posts: 9
|
|
Where can i find the source code of onBlur() or onchange event handlers? are the defination of these written in Browser? how is browser able to understand events? can i change the browser code to make my custom event handlers?
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15361
|
|
Source code? Decompile the browser and you can see it.
What are you trying to do exactly?
Eric
|
 |
Aniruddh Joshi
Ranch Hand
Joined: Jul 29, 2008
Posts: 275
|
|
Maybe you can download the code of an open source browser and see the code.
My rough idea of it would be.. browser would have some listener/observer design pattern implemented.
Where an object watches the state of the DOM object.
There would be a boolean like isControlOnMe which is reset to false when a user moves out of the field.
Now the listener calls every function written against the onBlur attribute once state of isControlOnMe switches from true to false.
|
Anrd
"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
|
 |
 |
|
|
subject: Where is the source code of onBlur() or onreadystatechange() eventshandlers , are they in Browser?
|
|
|