Search
 
SCRIPT & CODE EXAMPLE
 

HTML

how to make links open in a new window

The short answer is: just add a target="_blank" attribute to your links (anchor tags).

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

a link in new window

<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

PREVIOUS NEXT
Code Example
Html :: html img size 
Html :: how to link your js file to html 
Html :: add favicon to html 
Html :: bootstrap display inline block 
Html :: js import web3 cdn 
Html :: html ß 
Html :: conveert text to uppercase in input field 
Html :: input suggestion off 
Html :: input number maxlength 
Html :: Hello World HTML Code Example 
Html :: bootstrap 5 justify content 
Html :: javascript generate pdf from div content jquery 
Html :: font awesome cdn link 
Html :: ckeditor cdn 
Html :: textarea placeholder 
Html :: ngclass else 
Html :: how to make a divide sign in html 
Html :: tailwind css background image 
Html :: accept zip codes in html 
Html :: js on page finished loading 
Html :: how to create white space in html 
Html :: html input only 4 digits 
Html :: dynamic colspan in angular 
Html :: md bootstrap cdn 
Html :: how to get value of textbox in javascript from html 
Html :: python in html 
Html :: scrolling text html 
Html :: bootstrap text warning color 
Html :: move table tfoot at top 
Html :: how to set a default value for a dropdownlist in html with thymeleaf spring 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =