So I've been looking at a blog post with some javascript in it and there is something I'm looking at which I don't quite follow:
function pageLoadedHandler(sender, args) {
if (typeof(lastFocusedControlId) !== "undefined"
&& lastFocusedControlId != "")
{
var newFocused = $get(lastFocusedControlId);
if (newFocused) {
focusControl(newFocused);
}
}
In the above method it calls $get which i assume is an alias to
function(id) {
return document.getElementById(id);
}
There is nowhere in the supplied js file where $get is declared.
Is this a reserved alias and can someone provide the link which provies it. If not how does it know what $get is?