Generally, we add the
target attribute with value
_blank to <a> HTML tag when we are making any link on the website.
target attribute tells to browser to open this link in a new tab when the user clicks on it. See the following HTML <a> tag reference.
window object. You have to simply use the
open() function of
window object passing the link and attribute values.
So simply pass the first parameter as the link “https://yourblogcoach.com” and the second parameter is the attribute value “_blank”. See the following code.