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

209
Views
Check postMessage on Chrome inspect element

I am doing some testing on cross domain comunication, i would want to do the testing directly into chrome inspection rather than keep deploying my script to dev environment. Assuming have only 2 page ,

localhost:8766 and localhost:8765
localhost8765 is where i have declared to PostMessage
localhost8766 is the receiver

On Chrome browser , i have selected : devtableau.html as per below image where displaying the message is declared. enter image description here

This is working perfectly fine but what im trying to achieve is to declare the window.addeventlistener directly to chrome inspect element to do some testing

when i place window.addevenlistener directly to chrome , its returning undefined ,

enter image description here

What is the correct approach in doing this ?

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!