Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Setting hyperlink attribute target="_blank"
posted

When adding a hyperlink in a WebHTMLEditor, how is a user able to set the link to open in a new window?

A web part I have developed requires that all hyperlinks open in a new window, and I have no way to set this by default.  Aside from teaching the users how to edit the HTML, or replacing the string "<a href=" with "<a target='_blank' href=", how can I configure this?

Thanks,

Dustin

Parents
No Data
Reply
  • 150
    posted

    Set the default behavior at the HTML page level.

     

     

     

     

    <

     

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

    <

     

    head>

     

     

    <title></title>

     

     

    <base target="_blank" />

Children
No Data