Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Force app iframe links to open new browser window?

We're building a simple app that uses iframes to pull in external images and text to display in specific regions of the app's pages. The text displayed is an HTML list of links -- each link the name of a legislator -- that lead to that person's official biography. The client wants the following behavior: When the app user clicks a name/hyperlink, the iPad browser should take over and display the bio. When done reading the bio, the user can click the browser's close-window symbol at top right, then they will be back where they started in the app.


For some reason, these links insist on opening within the iframe, regardless of whether or not we use the target="_blank" method. I tried Googling for this as a known behavior, but found nothing. Tips?

Posted on Feb 8, 2013 9:43 AM

Reply
3 replies

Feb 8, 2013 9:53 AM in response to okieseeker

If it will help, here's a sample of the HTML were bringing into the iframe from an external source. We did not write this code but can relay messages to their Web developer ...


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head><title>Indiana Legislators</title>

<link href="../../../css/bootstrap.css" rel="stylesheet" type="text/css" /><link href="../../../css/normal.css" rel="stylesheet" type="text/css" />

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>

<meta name="viewport" content="width=360, minimum-scale=1.0, maximum-scale=1.0"/>

</head>

<body>

<div class="col-100-per">

<span class="content-ac">

<table>

<tr>

<th style="padding-right: 20px; white-space: nowrap;">District</th>

<th>Legislator</th>

</tr>

<tr>

<td> </td>

<td>

<a id="ContentPlaceHolder1_rptLegislators_LegislatorLink_0" class="dem" href="/AppContent/2013/legislator-bio/110/House/0/district/District" target="_blank">Frank Mrvan, Jr.</a>

</td>

</tr>


.... etc ....

Force app iframe links to open new browser window?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.