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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:17:27+00:00 2026-05-24T04:17:27+00:00

I have one HTML files on one server and two files on different server,

  • 0

I have one HTML files on one server and two files on different server, as below:

a.html – server 1

<html><head></head><body><iframe src="http://server2/b.html"></iframe></body></html>

b.html – server 2

<script type="text/javascript">/* <![CDATA[ */if (top == self ||  parent != top ||  document.location.hostname != document.domain) {  top.location.replace("c.html");}/* ]]> */</script>
<!DOCTYPE html><html lang="en" id="myworld" class="no_js"> 
<head><meta charset="utf-8" />
<script type="text/javascript">/* <![CDATA[ */if (top == self ||  parent != top ||  document.location.hostname != document.domain) {  top.location.replace("c.html");}/* ]]> */</script><noscript> <meta http-equiv="refresh" content="0; URL=b.html?st=1" /> </noscript>
</head><body>text is here</body></html>

c.html – server 2

<html><head></head><body>Please visit later.</body></html>

When I open http://server1/a.html, I am redirected to http://website2/c.html because it uses JavaScript and a meta tag for redirecting if the host is different.

What I want to do is: I don’t want b.html to run its JavaScript at all for redirecting and the meta tag refresh to c.html.

How can code a.html to render b.html in my iframe only? So it should disable b.html‘s javascript and meta tag.

  • 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-24T04:17:28+00:00Added an answer on May 24, 2026 at 4:17 am

    It sounds like server 2 is a owned by a third-party and you have no control over it. Unfortunately the javascript you can see there is a ‘frame breakout’ script which is specifically designed to prevent the page from being embedded in a iframe, as you are trying to do.

    One way around is to make an HTTP request directly from your web server to load page b, and then strip out the javascript and include it as part of your page.

    Edit: You should really ask the other site’s permission, as you are basically redistributing their content if you do this.

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

Sidebar

Related Questions

I have three files in a folder 'test' one.php two.php print.html And i have
On one PHP server I have two files. One file (the name is first.php)
I have two web application hosted on different server.For eg. one is main application
I have some static resources (images and HTML files) that will be localized. One
I have some HTML that I need to toggle between two structures - one
I have two separate installs of WebSphere. (Actually one is WebSphere Application Server V6.1
I would like to have two .css files. One for each master\content page and
I have two cgi files in the same cgi-bin folder. One complex 300hundread lines
What I'm trying to accomplish: I have two base files on my server that
I have an PHP website which creates and stores HTML template files on server

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.