Solved

iframe content opening in a new window

Posted on 2014-07-24
2
463 Views
Last Modified: 2014-07-24
Below is the code present in my HTML page –

<iframe name="iframe1" src="https://*****.com/openui?SWECmd=GotoView&SWEView=Personal+Request+List+View" height="1000" width="1500">
  <p>Your browser does not support iframes.</p>
</iframe>

Open in new window


When I open this HTML page using IE browser, the URL mentioned in iframe's SRC is opening in a new IE window. It is working fine if I refer to any page on local host.

I verified the response header and i dont see "X-FRAME-OPTION" attribute in it. I read that this attribute is responsible for allowing the page to be displayed in an iFrame.

Why is the page opening in a new window instead of opening in iFrame?
0
Comment
Question by:Ravi Kalla
2 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 40216168
If it is not a site you control, they probably have code to prevent framing their content.   http://chandank.com/security/secure-apache-from-clickjacking-with-x-frame-options
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40216254
I agree with Scott.  I have several pages that will pop themselves out of a frame and into a new window.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML5 frame 5 25
Sort Order Icons on HTML Table 3 24
Call a function within the ASP code 4 12
Multiflying 2 Input Text On a Table 7 20
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question