• logo
  • Sign In
  • Ask a Question
Sign In Ask a Question
  • Ask a Question
  • All Activity
  • Questions
  • Hots
  • Unanswered
  • Categories
  • Users
  • Badges
  • Log In
  • Sign Up

Login with Social Media

Forgot Password

Forget password

Forget password

Edit your Answer

1 Answer

Open link in new tab or window

211 Views
  • 0
Votes
name Bront
Asked: Aug 10,2018 In: HTML
1 Answer
name Bront Punditsdkoslkdosdkoskdo
Asked: Aug 10,2018 In: HTML

Open link in new tab or window

Is it possible to open an a href link in a new tab instead of the same tab?

<a href="http://your_url_here.html">Link</a>
html tabs hyperlink window href
  • 1 Answer
  • 211 Views
name Bront
Asked: Aug 10,2018 In: HTML
Answer
  • Recent
  • Voted
  • Oldest
name
  • 0
Percy
Percy Added an answer on Aug 13,2018

You should add the target=_blank and rel="noopener noreferrer in the anchor tag.

For example:

<a target="_blank" rel="noopener noreferrer" href="http://your_url_here.html">Link</a>

Source:

  • MDN | HTML element <a> | attribute target
  • Target=”_blank” — the most underestimated vulnerability ever
  • 0
Reply Report


Popular Questions

  • 22

    What is “Show desktop” keyboard shortcut in Mac OS X?

    3 Answers
  • 15

    Perform crud operation on cloud firestore in php

    2 Answers
  • 7

    what is the keyboard shortcut to switch between windows of the same application in macos?

    2 Answers

Trending Tags

macos keyboard-shortcuts php crud firestore cloud keyboard

Related Questions

  • 2

    How to give line-break from css, without using <br />?

    1 Answers
  • 2

    How to force link from iframe to be opened in the parent window

    1 Answers
  • 2

    default select option as blank

    1 Answers
  • Questions
  • All Activity
  • Questions
  • Hots
  • Unanswered
  • Category
  • Categories
  • Users
  • Miscellaneous
  • Badges
  • Blogs
  • logo
  • 86527
    Questions
    112373
    Answers
    24148
    Best Answers
    4273
    Users
    • social
    • social
    • social
Powered By fit-outfit.com