Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
How can I read the console of a window object in Javascript?

My school has blocked the inspect feature on our computers, which makes it incredibly hard to debug a project while I'm at school. I an looking to create a simple website (because that seems like that's the only thing my school will allow me to do anymore) that will open a website, then output all errors/warnings/console logs to a DOM element. I know how to open a window and store it in a variable, but I'm not sure where to start to read from the console's output. I am also wondering how I would detect when something is added to the console, as the new window will be on a new domain and we all know that CORS will have a fit if we try to do anything to it (like add an event listener to it?).

var newWindow = window.open("https://google.com");

newWindow.addEventListener("consoleupdate", consoleText => { // <-- What would I put here instead?
    document.getElementById("output").textContent = consoleText;
});

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!