|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<script> var obj; obj = window.navigator; console.log(obj); Object.keys(obj).forEach(function(key){ document.write(key +' '+obj[key] + "<br>\n"); }); obj = window.document; console.log(obj); Object.keys(obj).forEach(function(key){ document.write(key +' '+obj[key] + "<br>\n"); }); </script> dispjs <script> var len=document.links.length; document.write("このページのリンク数 = "+len+"<br \/>"); /* 各リンクの情報を出力 */ for(i=0; i<len; i++){ document.write(document.links[i]+"<br \/>"); } document.write(document); for ( let k in document ) { document.write(obj[k]); } document.write(document.body); </script> |
dispjs2.txt
JavaScript