Is there a comprehensive list of top-level JavaScript objects available?
If they are not considered "top-level," what is the proper method for referencing these objects?
To confirm if an object is defined in a modern browser, you can use the alert()
function.
alert(window);//[object Window]
alert(document);//[object HTMLDocument]
alert(Notification);//function Notification() {[native code]}
alert(XMLHttpRequest);//function XMLHttpRequest() {[native code]}
Please note that no frameworks are to be used.