Solved

iframe content opening in a new window

Posted on 2014-07-24
2
459 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now