<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Support HTML target attribute in web map popups in ArcGIS Online Ideas</title>
    <link>https://community.esri.com/t5/arcgis-online-ideas/support-html-target-attribute-in-web-map-popups/idi-p/954549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When configuring a web map popup, the interface allows access to the HTML tags. When creating a link from the popup, the default href target is "_blank"; changing the target to "_self" (or any other valid target) is ignored by ArcGIS Online--the resulting web map popup only supports "_blank".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It would be great if changes made to the target attribute are respected by ArcGIS Online.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2016 13:48:08 GMT</pubDate>
    <dc:creator>Greg_Yetman</dc:creator>
    <dc:date>2016-03-30T13:48:08Z</dc:date>
    <item>
      <title>Support HTML target attribute in web map popups</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/support-html-target-attribute-in-web-map-popups/idi-p/954549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When configuring a web map popup, the interface allows access to the HTML tags. When creating a link from the popup, the default href target is "_blank"; changing the target to "_self" (or any other valid target) is ignored by ArcGIS Online--the resulting web map popup only supports "_blank".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It would be great if changes made to the target attribute are respected by ArcGIS Online.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 13:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/support-html-target-attribute-in-web-map-popups/idi-p/954549</guid>
      <dc:creator>Greg_Yetman</dc:creator>
      <dc:date>2016-03-30T13:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Support HTML target attribute in web map popups</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/support-html-target-attribute-in-web-map-popups/idc-p/954550#M3928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I did find a workaround using the JavaScript API and an InfoWindow. The InfoWindow will not replace the _self or _parent attributes with _blank. Note that the popup window in the JavaScript API will replace the attributes.

&lt;!-- content transformation source ID: 00aE000000I8csS --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 19:43:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/support-html-target-attribute-in-web-map-popups/idc-p/954550#M3928</guid>
      <dc:creator>Greg_Yetman</dc:creator>
      <dc:date>2016-04-01T19:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Support HTML target attribute in web map popups</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/support-html-target-attribute-in-web-map-popups/idc-p/954551#M3929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;In my opinion, this is important if a web map is to be&amp;nbsp;embedding in a site. The current behaviour may make sense for a map-centric site, but if the map is intended to add value to a site, rather than be central, it is not ideal. For instance, I was asked to produce a web map to embed in a site that has information about a planning proposal. The site has text and images on various elements of the proposal. The map locates those elements. What I wanted was for the popups to link to anchors within site sub-pages so that if the popup is clicked through the browser jumps away from the map to the detailed descriptive text. Opening the content in new tabs instead (_blank) is clunky. I hope the workaround posted works, but this seems easy enough to support in HTML that we shouldn't be forced to use a workaround.

&lt;!-- content transformation source ID: 00aE000000HhdEc --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 15:51:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/support-html-target-attribute-in-web-map-popups/idc-p/954551#M3929</guid>
      <dc:creator>StephenKilburn</dc:creator>
      <dc:date>2016-04-20T15:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Support HTML target attribute in web map popups</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/support-html-target-attribute-in-web-map-popups/idc-p/1555846#M11858</link>
      <description>&lt;P&gt;I fully support this idea.&lt;/P&gt;&lt;P&gt;We configured a map in Map Viewer with a a popup which includes a hyperlink.&amp;nbsp; If I look at the source of the popup, the system has automatically added the attributes:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;target="_blank" rel="noopener noreferrer"&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, for accessibility reasons it's better to have links open in the same window, so I changed&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;target="_blank"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;target="_self"&lt;/STRONG&gt;. But when I do this, the target of the hyperlink specified by the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;href&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;attribute is stripped from the popups source automatically and leaves the link as: &lt;STRONG&gt;&amp;lt;a target="_self"&amp;gt;&lt;/STRONG&gt;, which goes nowhere as there is no href attribute.&lt;/P&gt;&lt;P&gt;If I remove the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;target="_blank"&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;attribute, it just comes back, it's not possible to remove it.&lt;/P&gt;&lt;P&gt;To me this is a bug as changing the target from "_blank" to "_self" deletes the href.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 15:29:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/support-html-target-attribute-in-web-map-popups/idc-p/1555846#M11858</guid>
      <dc:creator>MappyIan</dc:creator>
      <dc:date>2024-11-06T15:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Support HTML target attribute in web map popups</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/support-html-target-attribute-in-web-map-popups/idc-p/1571744#M12008</link>
      <description>&lt;P&gt;There is a post by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/682014"&gt;@rdbutger&lt;/a&gt;&amp;nbsp;where he shows he used Arcade&amp;nbsp; in the web map popup to bypass this automatic behavior.&lt;/P&gt;&lt;P&gt;Here is my sample code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/arcgis-online-popup-appending-rel-quot-noopener/m-p/1571741/highlight/true#M62960" target="_blank"&gt;https://community.esri.com/t5/arcgis-online-questions/arcgis-online-popup-appending-rel-quot-noopener/m-p/1571741/highlight/true#M62960&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This allows me to change the page in-place, instead of opening a new tab.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var baseurl = 'https://www.something.com/route/'
var code = Lower($feature.ColumnName)

var train_stations_public_page = Concatenate([baseurl,code])
Console(train_stations_public_page)

var train_stations_public_page_link = '&amp;lt;strong&amp;gt;&amp;lt;a style="color:#01507b;text-decoration: underline;cursor:pointer" target="_self" href="' + train_stations_public_page + '"&amp;gt;Station Details&amp;lt;/a&amp;gt;&amp;lt;/strong&amp;gt;'
Console(train_stations_public_page_link)

return { 
	type : 'text', 
	text : train_stations_public_page_link
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndresCastillo_0-1735584685040.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/122527i7E639DF0A351D91A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndresCastillo_0-1735584685040.png" alt="AndresCastillo_0-1735584685040.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 18:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/support-html-target-attribute-in-web-map-popups/idc-p/1571744#M12008</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2024-12-30T18:51:32Z</dc:date>
    </item>
  </channel>
</rss>

