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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:00:12+00:00 2026-05-11T17:00:12+00:00

I ask this because I want to display a page in iframe and on

  • 0

I ask this because I want to display a page in iframe and on clicking any link in iframe content, it should display it in the same iframe.

Check this site. and see how an iframe alow me to surf other sites.

  • 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-11T17:00:12+00:00Added an answer on May 11, 2026 at 5:00 pm

    that’s not anything special, that’s just how iframes work.

    however if any of those sites had an

    <a href="LINK" target="_top">text</a>
    

    It would break out of the iframe and load in the main page.

    There is no way that I am aware of to stop an iframe from taking over your window with target=_top links. You can’t modify someone else’s content in the iframe from your parent window, there are security issues with talking cross frame that prevent you from doing this.

    With Thickbox just load your html file and make sure you dont target=_top in any of thage pages you want to stay in the iframe.

    So copy & pasting from ThickBox’s example, with some jQuery:

    <script>
      var height = 300;
      var width  = 300;
      $(function(){
         $("#execute").click(function(){
             $("#link1").attr('href',$('#go').val() + "?height=" + height *"&width=" + width).trigger('click');
         });
      });
    </script>
    
    <input type="text" name="go" id="go" />
    <button id="execute">Go >></button>
    
    <a id="link1" href="ajaxOverFlow.html?height=300&width=300" title="add a caption to title attribute / or leave blank" class="thickbox">Scrolling content</a>  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ask this partly because I want to know the best practice way of
Mainly I ask this because I don't want to distribute both versions, and if
I ask this because I am currently trying to work out my own technique,
Or is it transparent for the application layer ? I ask this because I'm
I ask this question because I'm not able to test it at the moment.
I have to ask this question because I'm stuck, and I think its because
I'm not sure StackOverflow is the right place to ask this question, because this
Before I ask this question I would to apologise because of the fact that
I have to ask this, because: The only thing I recognize is, that if
This question is mostly academic. I ask out of curiosity, not because this poses

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.