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

246
Views
How do i get the current page's html element, from the firefox browser toolbox console?

So firefox allows you to view the browser's dom, via the browser developer toolbox that you have to enable separately.

In the dom, the currently opened pages are contained in browser elements, and the currently viewed one has the attribute "primary=true". Under this element there is a #document element which has the page's actual html content in it.

What i want to achieve, is to get the current page element and view it's content. I've tried this:

document.querySelector('browser[primary=true]');

Which returns the correct browser element, except it has no children, unlike in the inspector. So I can't access the page's content through that.

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!