Opening Links in a New Browser Window

When clicking a hyperlink in a List View Web Part, the URL opens in the current Web page. One way to achieve this is by changing the RenderPattern element in the FLDTYPES.xml file. However this would change the behavior for all Lists in all SharePoint sites. With FrontPage 2003 there’s an alternative technique which allows changing the behavior of only a particular List View.

Here is what you need to do:

1. Open the Web page containing the List View in FrontPage 2003

2. In Design View right-click the List View Web Part and select Covert to XSLT Data View from the context menu

3. Switch to Split View and locate the generated XSLT code <A …>…</A>

4. Change this code to <A … target="_blank" >…</A>

(THX to: https://www.kerwyn.net/)

Comments

  • Anonymous
    July 11, 2004
    The comment has been removed
  • Anonymous
    July 11, 2004
    you could use:
    <a href="http://www.cumps.be/" " onclick="window.open(this.href, '_blank'); return false;">

    XHTML valid, and popping up :)
  • Anonymous
    July 11, 2004
    hmm, great, that went wrong :p
    again without example:

    use the link like you normally would in the href and use onclick="window.open(this.href, '_blank'); return false;" in the a tag as well.
  • Anonymous
    July 12, 2004
    Would the links be search engine friendly if I use JS? Maybe not.