Data View Open Link in New Window

<a onfocus="OnLink(this)" href="{$url}" target="_blank">

If the onfocus attribute is not used the target will fail.

Note here I am showing $url as an xsl:variable, this would need to be defined first, or just simply insert the url you want. The reason for using a variable here is you may want to concatenate some pulled in values to build query strings or other options.


Popular posts from this blog

SharePoint Designer 2013 Approval Workflow with Comments

Change SharePoint server hostname and Web Application Names

SharePoint Search - Content Processing Pipeline Failed to Process the Item