test-console-evaluation-context-selector-child.html (648B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 </head> 6 <body> 7 <h2>iframe</h2> 8 <button class="stop-me">Stop Me!</button> 9 <script> 10 "use strict"; 11 console.log("iframe", document); 12 var id = new URLSearchParams(document.location.search).get("id"); 13 document.querySelector("h2").id = id; 14 document.title = `${id}|${document.location.host}`; 15 document.addEventListener("click", function() { 16 // eslint-disable-next-line no-unused-vars 17 const localVar = document; 18 // eslint-disable-next-line no-debugger 19 debugger; 20 }); 21 </script> 22 </body> 23 </html>