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

  • Home
  • SEARCH
  • 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 8320215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:34:58+00:00 2026-06-08T22:34:58+00:00

Okay, so I’m trying to iFrame a webpage. I don’t know why, but it

  • 0

Okay, so I’m trying to iFrame a webpage. I don’t know why, but it won’t stay in my page (it pops out and goes to the main page). The code I’m using is:

<iframe>http://mywebsite.com</iframe>

How do I keep it in my site?

  • 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-08T22:35:01+00:00Added an answer on June 8, 2026 at 10:35 pm

    You need to use the src property.

    <iframe src="http://mywebsite.com"></iframe>
    

    HTML/text content placed inside the tags of an iframe is treated as “fallback” content that only shows up if the browser doesn’t support iframes. See the MDN documentation for full details.

    <iframe src="http://mywebsite.com">
        This sentence only shows up if the browser doesn't support iframes!
    </iframe>
    

    Thus, you were creating an iframe that didn’t point to any page with its src property (so it remained blank), and had the text “http://mywebsite.com” as fallback text to appear in browsers that don’t support iframes.

    EDIT:

    If you don’t control the site, it’s possible that the framed site has some logic that says something like:

    // if we are not the highest frame, someone is try to frame this site
    if(window.parent != window)
        // redirect the framing parent site to our site
        window.parent.location.href = 'http://iframedsite.com';
    

    This logic detects if the site is being embedded by someone else (e.g., your own site) and redirects the parent frame. You can confirm whether this is the problem by simply framing IANA’s website, https://www.iana.org/ (or just http://www.example.com), which plays nicely when it is framed and doesn’t do parent-frame redirects.

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

Sidebar

Related Questions

Okay, I know this is going to sound like homework; but here goes any
Okay, so this is a long long shot but here it goes... When IE
Okay I've spent the last hour trying to find a solution to this but
Okay, so I know that using eval() isn't great, but I haven't been able
Okay i know i have to use the JDBC etc, but im not sure
Okay so the title may be a bit misleading. What I am trying to
Okay, I have setup up a handler for a div click but for some
Okay, so I'm trying to make a game that uses this algorithm: http://www.codeproject.com/Articles/15573/2D-Polygon-Collision-Detection But
Okay so I made this program to help me out with my homework and
Okay, I'm trying to reverse engineer a feature on a website I found -

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.