Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8137523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:09:22+00:00 2026-06-06T11:09:22+00:00

if (window.parent.frames[‘scripts1’]) { if (window.parent.frames[‘scripts1’].document.documentElement) { var strSCRIPT = window.parent.frames[‘scripts1’].document.documentElement.textContent; if ((strSCRIPT.lastIndexOf(‘bbbbEND’) – strSCRIPT.length)

  • 0
if (window.parent.frames['scripts1']) {
  if (window.parent.frames['scripts1'].document.documentElement) {
    var strSCRIPT = window.parent.frames['scripts1'].document.documentElement.textContent;
    if ((strSCRIPT.lastIndexOf('bbbbEND') - strSCRIPT.length) != -7) {
      window.parent.frames['scripts1'].document.location.href = 'test1.txt?refresh=' + Date();
    }
  } else {
    window.parent.frames['scripts1'].document.location.href = 'test1.txt?refresh=' + Date();
  }
}

I have tried lot of things but not success in writing something for cross browser.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:09:24+00:00Added an answer on June 6, 2026 at 11:09 am

    Here’s some jQuery conceptual material to get you started:

    // make sure to give your frame an ID, and then it's easy to access
    var frame_a = $( "#frame_a" );        
    
    // jQuery's content() function seems to only work on iFrames, not on Frames
    var frame_a_document = $( frame_a[0].contentDocument );        
    
    var frame_a_document_body = frame_a_document.find( "body" );
    var frame_a_text = $( frame_a_document_body ).text();        
    
    alert( frame_a_text );
    

    Keep in mind this important fact: Your frame is loaded after the parent document is finalized which means that the ready() function will be executed before the frame is loaded. If you try to access your frame in your ready() function, most likely you will get nothing because it’s not been loaded yet — i.e., it’s race condition.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

parent.document.getElementById(next).innerHTML=window.frames['hiddenframe'].document.body.innerHTML; Error: window.frames.hiddenframe is undefined this is the error i get. i have given
Here is some example code: frames = document.getElementsByTagName('iframe'); parent = frames[0].parentNode; parent.removeChild(frames[0]); Works in
I have a file called: refdes2.php <script> function go(){ window.frames[0].document.body.innerHTML='<form target=_parent action=http://www.site.com/refdes3.php></form>'; window.frames[0].document.forms[0].submit() }
import wx class bucky(wx.Frame): # Creating the outer window/frame def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,'Karls Network Tool',
I have a parent window and a few child windows attached to this. With
Want to run javascript function from parent window in child window Example I have
I have this iFrame in my parent window... <iFrame src=http://theirdomain.com id=Post_iFrame></iFrame> Then I have
Using JavaScript I open the pop window and parent window is inactive at this
Is it possible to scroll the iframe window from the parent window using keys
I'm trying to update an image in a parent window with clickable links in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.