WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Open link in a new window/tab (4 posts)

  1. JGravesNBS
    Member
    Posted 1 year ago #

    The following code was generated on Google Maps, it works however I want to open link in a new window/tab instead the same tab as my website

    How do I open link in a new window/tab?

    This is in a text box widget in footer of Local Business theme

    http://www.johnbgravesjr.com

    <iframe width="300" height="270" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=LaSalle+Yacht+Club+S+68th+St,+Niagara+Falls,+NY+14304&aq=&sll=43.074155,-78.985863&sspn=0.027461,0.077162&g=S+68th+St,+Niagara+Falls,+Niagara,+New+York+14304&ie=UTF8&hq=LaSalle+Yacht+Club&hnear=S+68th+St,+Niagara+Falls,+Niagara,+New+York+14304&t=m&ll=43.073951,-78.985627&spn=0.004232,0.006416&z=16&iwloc=A&output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=LaSalle+Yacht+Club+S+68th+St,+Niagara+Falls,+NY+14304&aq=&sll=43.074155,-78.985863&sspn=0.027461,0.077162&g=S+68th+St,+Niagara+Falls,+Niagara,+New+York+14304&ie=UTF8&hq=LaSalle+Yacht+Club&hnear=S+68th+St,+Niagara+Falls,+Niagara,+New+York+14304&t=m&ll=43.073951,-78.985627&spn=0.004232,0.006416&z=16&iwloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small>

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    ,0.006416&z=16&iwloc=A" style="color:#0000FF;text-align:left" target="_blank">View Larger Map</a></small>

    add: target="_blank" per above.

    http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_a_target

  3. CarletonU
    Member
    Posted 1 year ago #

    In the link, add target="_blank"

    It would look like this (I've inserted it right before the View Larger Map text:

    <a href="https://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=LaSalle+Yacht+Club+S+68th+St,+Niagara+Falls,+NY+14304&aq=&sll=43.074155,-78.985863&sspn=0.027461,0.077162&g=S+68th+St,+Niagara+Falls,+Niagara,+New+York+14304&ie=UTF8&hq=LaSalle+Yacht+Club&hnear=S+68th+St,+Niagara+Falls,+Niagara,+New+York+14304&t=m&ll=43.073951,-78.985627&spn=0.004232,0.006416&z=16&iwloc=A" style="color:#0000FF;text-align:left" target="_blank">View Larger Map</a>

  4. JGravesNBS
    Member
    Posted 1 year ago #

    Thanks guys

Topic Closed

This topic has been closed to new replies.

About this Topic