AnsweredAssumed Answered

InfoWindow fields - URLs automatically add "_blank" as target

Question asked by csgeosol1 Champion on May 15, 2015
Latest reply on May 19, 2015 by csgeosol1

I have an application creating layers from an asynch JSON request - in the data pull, I have a field that contains a URL embedded within an anchor tag html element.


I am creating a featureLayer object from a featureCollection, which contains a layerDefinition where the URL field is defined. Everything works well - the layer loads with the proper symbology and all of my fields exist within the layer object; however, when the InfoWindow opens, the link automatically assigns "_blank" as the target:



Even If I explicitly set the target in the html element, e.g.:


<a href="" target="_parent">Google</a>


We still end-up with "_blank" as the target.


I tried using a javascript function, e.g.'', '_parent');


But, the target is prepended. Is there something within the InfoWindow class that automagically adds the target attribute? Nothing jumped out while I perused the API class page:


InfoWindow | API Reference | ArcGIS API for JavaScript


Thanks for the help.