HTML Tutorial => Open Link In New Tab/window

Download HTML (PDF)

HTML

  • Getting started with HTML
  • Upscaling your web development business
  • What Kind of Hosting Should a Student Choose?
  • Awesome Book
  • Awesome Community
  • Awesome Course
  • Awesome Tutorial
  • Awesome YouTube
  • Anchors and Hyperlinks
    • Link that dials a number
    • Link that runs email client
    • Link that runs JavaScript
    • Link to a page on the same site
    • Link to an anchor
    • Link to another site
    • Open link in new tab/window
  • ARIA
  • Canvas
  • Character Entities
  • Classes and IDs
  • Comments
  • Content Languages
  • Data Attributes
  • Div Element
  • Doctypes
  • Embed
  • Forms
  • Global Attributes
  • Headings
  • HTML 5 Cache
  • HTML Event Attributes
  • IFrames
  • Image Maps
  • Images
  • Include JavaScript Code in HTML
  • Input Control Elements
  • Label Element
  • Linking Resources
  • Lists
  • Marking up computer code
  • Marking-up Quotes
  • Media Elements
  • Meta Information
  • Navigation Bars
  • Output Element
  • Paragraphs
  • Progress Element
  • Sectioning Elements
  • Selection Menu Controls
  • SVG
  • Tabindex
  • Tables
  • Text Formatting
  • Using HTML with CSS
  • Void Elements

HTML

  • Getting started with HTML
  • Upscaling your web development business
  • What Kind of Hosting Should a Student Choose?
  • Awesome Book
  • Awesome Community
  • Awesome Course
  • Awesome Tutorial
  • Awesome YouTube
  • Anchors and Hyperlinks
    • Link that dials a number
    • Link that runs email client
    • Link that runs JavaScript
    • Link to a page on the same site
    • Link to an anchor
    • Link to another site
    • Open link in new tab/window
  • ARIA
  • Canvas
  • Character Entities
  • Classes and IDs
  • Comments
  • Content Languages
  • Data Attributes
  • Div Element
  • Doctypes
  • Embed
  • Forms
  • Global Attributes
  • Headings
  • HTML 5 Cache
  • HTML Event Attributes
  • IFrames
  • Image Maps
  • Images
  • Include JavaScript Code in HTML
  • Input Control Elements
  • Label Element
  • Linking Resources
  • Lists
  • Marking up computer code
  • Marking-up Quotes
  • Media Elements
  • Meta Information
  • Navigation Bars
  • Output Element
  • Paragraphs
  • Progress Element
  • Sectioning Elements
  • Selection Menu Controls
  • SVG
  • Tabindex
  • Tables
  • Text Formatting
  • Using HTML with CSS
  • Void Elements
HTML Anchors and Hyperlinks Open link in new tab/window

Fastest Entity Framework Extensions

Bulk Insert Bulk Delete Bulk Update Bulk Merge

Example

<a href="example.com" target="_blank">Text Here</a>

The target attribute specifies where to open the link. By setting it to _blank, you tell the browser to open it in a new tab or window (per user preference).

SECURITY VULNERABILITY WARNING!

Using target="_blank" gives the opening site partial access to the window.opener object via JavaScript, which allows that page to then access and change the window.opener.location of your page and potentially redirect users to malware or phishing sites.

Whenever using this for pages you do not control, add rel="noopener" to your link to prevent the window.opener object from being sent with the request.

Currently, Firefox does not support noopener, so you will need to use rel="noopener noreferrer" for maximum effect.

Got any HTML Question?

Ask any HTML Questions and Get Instant Answers from ChatGPT AI: ChatGPT answer me! pdf PDF - Download HTML for free Previous Next This modified text is an extract of the original Stack Overflow Documentation created by following contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow logo rip SUPPORT & PARTNERS
  • Advertise with us
  • Contact us
  • Cookie Policy
  • Privacy Policy
STAY CONNECTED

Get monthly updates about new articles, cheatsheets, and tricks.

Subscribe Cookie This website stores cookies on your computer. We use cookies to enhance your experience on our website and deliver personalized content. For more details on our cookie usage, please review our Cookie Policy and Privacy Policy Accept all Cookies Leave this website

Từ khóa » Html5 A Tag Open In New Tab