<a target="_self" href="https://www.youtube.com" >YT player</a>

Use _self

<a target="_self" href="https://www.youtube.com" >YT player</a>
Answer from O.Rares on Stack Overflow
🌐
W3Schools
w3schools.com › html › html_links.asp
HTML Links Hyperlinks
The target attribute specifies where to open the linked document. The target attribute can have one of the following values: _self - Default. Opens the document in the same window/tab as it was clicked
🌐
Google Support
support.google.com › sites › thread › 301208794 › how-do-i-open-links-in-the-same-tab-using-html-code
How do I open links in the same tab using HTML code? - Sites Community
Skip to main content · Sites Help · Sign in · Google Help · Help Center · Community · Sites · Terms of Service · Submit feedback · Send feedback on
🌐
GeeksforGeeks
geeksforgeeks.org › html › how-to-open-url-in-same-window-and-same-tab-using-javascript
How to open URL in same window and same tab using JavaScript ? - GeeksforGeeks
July 24, 2025 - When the button is clicked, the sameTab() function is called, which uses the window.open() method with the _self parameter to load the URL in the same window and in the same tab. ... <!DOCTYPE html> <html> <head> <title> Open URL in same window ...
🌐
UsefulAngle
usefulangle.com › post › 337 › html-open-links-in-same-tab
Open Links in a New Tab, Or Re-Use Already Existing Tab
If opening the links with Javascript open() method, the same window name needs to be provided for the given set of links. window.open('https://usefulangle.com', 'child-window'); Clicking on any of the below links will open a single tab.
Find elsewhere
🌐
Sololearn
sololearn.com › en › Discuss › 346470 › how-to-open-url-in-same-window-and-in-same-tab-
How To Open URL in same window and in same tab ??? | Sololearn: Learn to code for FREE!
When I try to open a link by using window.open, then it opens in new tab—not in the same tab in the same window. ... If you want to do this in HTML: <a href = "page.html" target = "_self"> </a> Else, use Javascript: window.open('page.html', ...
🌐
freeCodeCamp
freecodecamp.org › news › how-to-use-html-to-open-link-in-new-tab
How to Use HTML to Open a Link in a New Tab
September 8, 2020 - To open a link in a new tab, we'll need to look at some of the other attributes of the anchor element's other attributes.
🌐
W3Schools
w3schools.com › tags › tryit.asp
W3Schools online HTML editor
The W3Schools online code editor allows you to edit code and view the result in your browser
🌐
CoreUI
coreui.io › blog › how-to-open-link-in-a-new-tab-in-html
How to Open Link in a New Tab in HTML? · CoreUI
February 26, 2025 - Some browser environments or browser’s settings may override your request to open a link in a new tab. Certain modern browsers let users force a link open in the same window or open a link in new tab by right-clicking.
🌐
Reddit
reddit.com › r/qutebrowser › force link to open on the same tab?
r/qutebrowser on Reddit: Force link to open on the same tab?
October 22, 2020 -

I made a simple startup page, i used a template i found here on Reddit, and i was able to put it as the default page when i open a new tab and a new window. This page has all the links i use the most.

The thing is.. All the links open on a new tab, and i want to avoid this, since with every link i click, i now have two tabs, one with facebook (for example) and another one with the default page i made with the links.

Is there a way to avoid this? Make all my links open on the same tab without opening new ones.

I hope i make myself clear, english it's not my native language.

🌐
Mycode
mycode.blog › lakshmi › open-linkurl-same-tabwindow-or-new-tab-html-js
Open Link/URL in Same Tab/Window or New Tab in HTML & JS | mycode.blog
October 30, 2023 - In HTML, utilizing the target="_blank" attribute ensures that the link opens in a new tab. In JavaScript, if you want to open a link in the same tab or window, you can do so by setting window.location to the new URL, effectively replacing the ...
🌐
w3tutorials
w3tutorials.net › blog › opening-a-link-in-the-same-tab-with-html
How to Open a Link in the Same Tab with HTML: Troubleshooting Target Attribute Issues — w3tutorials.net
The target attribute in HTML controls ... several values, each with specific behavior: For opening links in the same tab, _self is the critical value....
🌐
Medium
medium.com › geekculture › get-links-to-open-in-a-new-tab-84bbbbeb6ab0
Get Links to Open in a New Tab. Use HTML ‘target’ attribute to get the… | by Jonelle Noelani Yacapin | Geek Culture | Medium
June 2, 2021 - Use HTML ‘target’ attribute to get the response from clicking a link or submitting a form to display in a separate tab or window.
🌐
DhiWise
dhiwise.com › post › html-open-link-in-new-tab-improve-user-navigation
How to Open Links in a New Tab Safely in HTML
September 12, 2025 - The link address is defined by the href attribute, which specifies the URL of the target web page or resource. ... By default, clicking this link will open the target URL in the same tab, replacing the current web page content.