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

132
Views
window.find not working in iframe on webpage

I wrote a JavaScript code to find text on window using window.find. It works fine for the web pages but does not work inside IFRAME text ( i have to search the text on web page and IFRAME also). The purpose is to highlight searched text in blue background just like browsers search does.

Can anybody put me in the right direction what mistake I am making Below is my code

function searchText(str)
{
     window.find(str)
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can only access the contents of an iframe with JS if the content is from the same domain.

If it is -> $("#iFrame").contents().find()

about 4 years ago · Juan Pablo Isaza Report
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!