1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Rep Power

    Open link in new window from array

    'Shipment Status' => ROOT.'shipment-status.php',
    'Highlights' => 'URL'


    I am designing a navigation bar for a website and would like the external link to open in a new window. How do I implement the 'highlights' link to open in a new tab or window?
  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Pennsylvania, USA
    Rep Power
    Reformat both your code and your question so they make a bit more sense.

    Opening an HTML link in a new tab/window is an HTML question:

    <a href="something.link" target="_blank">Click here</a>
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.

IMN logo majestic logo threadwatch logo seochat tools logo