ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

External Link Issue

January 28, 2013 7:06am

Subscribe [1]
  • #1 / Jan 28, 2013 7:06am

    creativemedia

    6 posts

    I used the tip on http://buildwithstructure.com/documentation/linking_to_an_external_page_or_file_in_navigation/ to create an external link on my site but am having an issue to get it to open in a new window.

    I tried adding the following jquery to my page header but this didn’t work as the link is being handled as an internal link:

    $(‘a[href^=“http://”]’)
      .attr(“target”, “_blank”);

    Any tips/ideas to solve this?

    Thanks in advance.

  • #2 / Feb 03, 2013 4:33pm

    creativemedia

    6 posts

    Anyone have any ideas on how to approach this? Really would greatly appreciate it.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases