Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 645 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 645 Bytes

About inheritlink:

Plugin for jQuery to inherit link action.

Usage notes:

  • Apply directly to element with link to inherit.
  • Just first link selector match is used, any other link is respected.
  • Hide element will hide original link if desired, but is also recommended to hide by using CSS to prevent a pop out behaviour.
  • Auto external will add new window attribute automatically.

Usage example:

if ($.fn.inheritlink) { $('article.teaser').inheritlink('a', '', false, true); }

Changelog:

Version 1.0 - 2018-09-28
  • First release
Version 2.0 - 2019-09-05
  • Renamed plugin to prevent uppercase usage in name.