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 853805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:49:16+00:00 2026-05-15T07:49:16+00:00

where is error? <iframe src=jquerytabs/index.html name=bulten scrolling=auto id=ifr2 frameborder=0 style=width:100%; marginheight=0 marginwidth=7 height=288 ></iframe>

  • 0

where is error?

<iframe  src="jquerytabs/index.html" name="bulten"  scrolling="auto"  id="ifr2" frameborder="0" style="width:100%;" marginheight="0" marginwidth="7"  height="288" ></iframe>


<script type="text/javascript"> 
document.write(parent.document.getElementById('ifr2').src) --->error is here but how can I correct?
</script>   
  • 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-05-15T07:49:17+00:00Added an answer on May 15, 2026 at 7:49 am

    The error means that parent.document.getElementById('ifr2') is returning null. Why are you using parent.document instead of just document?

    Does your script really come after the <iframe>, as it does in the code you posted? Is it possible that you have more than one element with the same “id” value (“ifr2”) (probably not, but it’s worth checking)?

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

Sidebar

Related Questions

Error creating bean with name 'sessionFactory' defined in class path resource [ApplicationContext.xml]: Invocation of
I am currently defining the src attribute of my Iframe with the URL +
I have iframe (cross domain) with src from Facebook, Twitter or etc. I need
Hi I'm uploading a file through an iframe. HTML: <from action=upload.php target=iframe> <input type=file
document.getElementById(myFrame).setAttribute(src) = http://www.yahoo.com/; myFrame is an iframe element... when entering this into the chrome
I have some JavaScript code that dynamically injects an iframe in a given HTML
i am using iframe to refresh captcha whenever user makes an error in typing
Here is the situation: A page ( iframe.html ) has an iframe loading another
I am getting an error when my app is being embedded in an iframe
I am having problem in providing a path to the IFrame src. I hav

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.