Support » Fixing WordPress » Link opens new window or tab in background

  • I need to figure out how to get a link to open in a new window or tab but in the background so that the page the link is on, stays in the front.

    Here’s why. For visitors to my site, I give them an opportunity to listen to an audio explanation of what they are looking at without having to leave the page. I could just place an audio player on the page but the audio instructs them to visit additional pages. If they leave, it will interrupt the audio and for their best experience it has to keep playing. So I put the audio player on a separate background page that I want to open separately.

    I don’t want to complicate it either by giving additional instructions beyond, just click this link because we know visitors fall off when we add additional steps.

    I appreciate your help and would love to hear your suggestions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You have to add target=”_blank” to the link.

    <a href="" target="_blank"">New Page</a>
    <a href="">Same Page</a>

    I did add the _blank target to the link but the problem is it opens in a new tab and the focus goes to the new tab.

    I need it to open the new tab but keep the focus on the current tab.

    You may want to pop up the player. check out something like this

    OK, I played with mp3-jplayer and the only problem with that is that I can only add a pop out player to a widget (as far as I’ve been able to figure out.) Even then it requires the user to click on a link/button that’s not very clear to make the player a popout. That would require too many instructions for the user.

    Any other suggestions to get a new window or tab to open but keep the focus on the current page/tab?

    Try This..
    I think this is helpful to you..

    <a href="" onclick=",'_self');'#','_blank');">
        Click Here
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link opens new window or tab in background’ is closed to new replies.