WordPress.org

Ready to get started?Download WordPress

Forums

Open external links in a new window
[resolved] Target attribute left empty (2 posts)

  1. Eddie - Digital Marketing Consultant
    Member
    Posted 3 years ago #

    is it supposed to leave the target attribute empty?

    <a title="My Video" href="javascript:window.open('http://www.youtube.com/watch?v=abcdefgh'); void(0);" target="">My Video</a>

    http://wordpress.org/extend/plugins/open-external-links-in-a-new-window/

  2. kezze
    Member
    Plugin Author

    Posted 3 years ago #

    No, it isn't. Thanks for letting me know.

    I changed the setAttribute-line to
    document.links[t].removeAttribute('target');

    The revised version will be released soon.
    /Kristian

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic