I recently came upon this code on the web :
function window::onload() {
alert('onload!');
}
This (strange) syntax is only working in Internet Explorer (IE 8 in my case) and I wasn't sure of how it was called so I could search for it.
I simply want to know if there is some documentation related to this type of functions and if so, how are they called ?
That is automatic event binding in JScript, similar to the Object_EventName
naming convention in VBScript.
See: Scripting Events
Supposedly it has meen removed in later version of Internet Explorer, just as some other rarely used non-standard features.