Search
 
SCRIPT & CODE EXAMPLE
 

HTML

open link in new tab

<a href="https://www.google.com/" rel="noopener noreferrer" target="_blank">google.com</a>

dont use just target="_blank" without  rel="noopener noreferrer" 
It Makes Your Site Vulnerable to Phishing Attacks
_________________________________________________________________
<a href="#" target="_blank">By this you can open your document in new tab</a>
<a href="#" target="_self"> by this linked document in the same frame as it was clicked (this is default)</a>
<a href="#" target="_parent">by this linked document in the parent frame</a>
<a href="#" target="_top">Opens the linked document in the full body of the window</a>
Comment

open link in a new tab

<a href="thislink.com" target="_blank">My Link</a>
Comment

open link in new tab

<a href="https://www.google.com/" target="_blank">Open Google in a new tab!</a>
Comment

open link in new tab

<a href="url" target="_blank">...</a>
Comment

a in new tab

<a href="https://www.thesitewizard.com/" rel="noopener noreferrer" target="_blank">thesitewizard.com</a>
<!-- This takes some security considerations into account as doing this can make your site vulnerable. See Link / Source for more info -->
Comment

open link in new window, not tab

<a href="https://www.codegrepper.com/" target="_blank">Grep!</a> 
Comment

open link in new tab

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

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

open link in new tab

// You just have to add target="_blank" to open the link in new tab.

<a href="https://www.thesitewizard.com/" target="_blank">thesitewizard.com</a>

Comment

how to open link in new tab

simply
<a href="#" target="_blank"> will open your link in new tab
Comment

open link in new tab

<a href="The link of the page" target="_blank">Open page in new tab</a>
Comment

make link open in new tab

You can make a HTML link open in a new tab by adding the target=”_blank” attribute. 
You should insert this after the link address.
Comment

how to make link open in new tab

<a href="https://vuejs.org/" target="_blank"> //add attribute target="_blank"
Comment

PREVIOUS NEXT
Code Example
Html :: html use js variable as text 
Html :: form multipart/form-data 
Html :: html textbox pattern mobile number 
Html :: how to start a html file 
Html :: how to run python in html 
Html :: c# get url html 
Html :: how to disable a link 
Html :: csp react 
Html :: disable autocomplete 
Html :: ionic ngfor object 
Html :: html beginform asp.net mvc add id 
Html :: data list in input tag 
Html :: html auto refresh 
Html :: meta http-equiv x-ua-compatible 
Html :: align right bootstrap 
Html :: markdown bulleted list 
Html :: div fit content background 
Html :: stop website from overscrolling 
Html :: navigation bar on more than one page 
Html :: img src data base64 
Html :: js html textbox on change 
Html :: html bookmark spot 
Html :: how to align 2 buttons in a div 
Html :: html change label color 
Html :: how to add script in html head 
Html :: autocomplete off input 
Html :: how to align image in right in html 
Html :: how to emphasize text in html 
Html :: multiple ngclass 
Html :: html small tag 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =