Alle Javascript objekte
Listet alle Javascript Elemenete auf die auf de aktuellen Seite verfügbar sind
Der hier verwendete Code
<p id=status></p>
<script>
"use strict";
var obj = window;
while(obj){
for(let prop of Reflect.ownKeys(obj)){
console.log(prop);
};
obj = Object.getPrototypeOf(obj);
};
let start=window.chrome.app;
// console.log(start);
for(prop in start){
let start1=start;
let w=prop;
// console.log(start1[prop]+'.'+w)
// console.log(eval(start1+'.'+w));
}
// console.log(Object.getOwnPropertyNames(window));
for (var prop in Object.getOwnPropertyNames(window)){
// console.log(Object.getOwnPropertyNames(window)[prop]);
// console.log(Object.getOwnPropertyNames(window)[prop])
}
document.write('<pre>');
console.log('HTMLPreELement' in window);
Object.getOwnPropertyNames(window)
.forEach(function(v, x) {
if (v === 'HTMLPreElement')
document.write('<h2>' + v + '</h2>');
else
document.writeln(v);
});
document.write('</pre>');
</script>