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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:13:38+00:00 2026-05-27T13:13:38+00:00

Here I have code for showing an external page within my page (similar to

  • 0

Here I have code for showing an external page within my page (similar to iframe but I grab the source):

<?php
$url = 'http://www.kupime.com/';
$data = file_get_contents($url);

$data = '<head><base href='.$url.' target="_blank" /></head>'.$data;    

echo $data;
?>

When I call the script, all is OK – but I can’t close javascript window and can’t see the content… the close link doesn’t work. What is the problem? How to solve this?

UPDATE: or is there any function (JS or jquery) which will hide ‘DIV’ on right click on him. THANKS

  • 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-27T13:13:38+00:00Added an answer on May 27, 2026 at 1:13 pm

    Of course using str_replace() to make them invisible.

    Use this:

    <?php
    $url = 'http://www.kupime.com/';
    
    $data = file_get_contents($url);
    
    $data = '<head><base href='.$url.' target="_blank" /><script type="text/javascript">$(document).ready(function(){parent.close_home_banner()});</script></head>'.$data;
    
    $data = str_replace('<div id="active_banner_wrap">', '<div id="active_banner_wrap" style="display:none;"> ' , $data); 
    $data = str_replace('<div id="home_banner_campaign_wrapper">', '<div id="home_banner_campaign_wrapper" style="display:none;"> ' , $data); 
    
    echo $data;
    
    ?>
    

    To avoid javascripts:

    $data =  str_replace('<script>', '<removed>' , $data);
    $data =   str_replace('</script>', '</removed>' , $data);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my main page, I have a div showing some external html content. Here
I have a some code here and I with this code render external page
I have a some code here and I with this code render external page
I have some code here which works perfectly in firefox but not in chrome
I don't know how to summarize my situation, but here's the simplified code showing
I have some code here but it's not working. What I want is to
Here is my issue. I have an ASPX web site and I have code
Please help me to rectify my code. Here I have described the code what
I have this code here: var infiltrationResult; while(thisOption) { var trNode = document.createElement('tr'); var
I have this code here, which is intended to allow any type of arguments:

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.