How can we help you today?

Make Links in Dynamic Table Target _blank

This document will help you to let links inside ShortPoint Table component open in a new tab.



  1.  Open ShortPoint Theme Builder: Utilities - Custom Javascript.

  2.  Paste the following code inside the Custom Javascript field and click apply.

    (function () {
        'use strict';
        fixLinks();
    })();
    function fixLinks() {
        if (!shortpoint.$('.shortpoint-table[data-shortpoint-type="table-dynamic"] a').length) {
            setTimeout(fixLinks, 200);
            return;
        }
        // element is ready, let's fix it
        shortpoint.$('.shortpoint-table[data-shortpoint-type="table-dynamic"] a').attr('target', '_blank');
    }

            The following code will search for dynamic tables inside of your pages and change the target attribute of every link inside a dynamic table to target="_blank".  

  1.  Click the publish button and all links inside the dynamic table will open in a new tab.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 24 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more