console.log(document.head) results alternate with each refresh

dexodisc

New Member
I just discovered something that really puzzled me:\[code\] <!DOCTYPE html> <html lang="en"> <head> <title></title> </head> <body> <script type="text/javascript"> console.log(document.head); </script> </body> </html>\[/code\]Every time I refresh this page in Safari and Chrome, the console output alternates between a JavaScript "HTMLHeadElement" and the HTML itself.Would anyone care to elaborate?
 
Back
Top