{"id":126,"date":"2010-09-29T09:00:01","date_gmt":"2010-09-29T09:00:01","guid":{"rendered":"http:\/\/websitespotblog.com\/?p=29"},"modified":"2010-09-29T09:00:01","modified_gmt":"2010-09-29T09:00:01","slug":"making-hyperlinks-open-in-a-new-window","status":"publish","type":"post","link":"https:\/\/www.websitespot.com\/blog\/making-hyperlinks-open-in-a-new-window\/","title":{"rendered":"Making Hyperlinks Open In A New Window"},"content":{"rendered":"<p>I was doing some research on topics that visitors were searching for on my blog and at <a title=\"make your own web site\" href=\"https:\/\/www.websitespot.com\" target=\"_blank\">www.WebsiteSpot.com<\/a> and found that quite a few people are looking for a way to get hyperlinks to open in a new window.<\/p>\n<p>This is actually a very simple snippet of HTML code. A hyper link allows you to create a link from a webpage to another webpage in your website or to a completely different website.<\/p>\n<h2>Basic Hyperlink<\/h2>\n<p>The code to use is:<\/p>\n<p>&lt;a href=\"https:\/\/www.websitespot.com\"&gt;Domain Name Registration&lt;\/a&gt;<\/p>\n<p>The link would appear as: <a href=\"https:\/\/www.websitespot.com\">Domain Name Registration<\/a><\/p>\n<h2>Creating Hyperlinks To Open In A New Window<\/h2>\n<p>If you create a link but would like to open a new browser window once it's clicked you can simply add a little more code to accomplish this. I've highlighted the additional code below.<\/p>\n<p>&lt;a <strong>target=\"_blank\" <\/strong>href=\"https:\/\/www.websitespot.com\"&gt;Domain Name Registration&lt;\/a&gt;<\/p>\n<p>The link would appear as <a href=\"https:\/\/www.websitespot.com\" target=\"_blank\">Domain Name Registration<\/a> but would open a new window when clicked.<\/p>\n<p>That's it, if you're using a WYSIWYG editor such as FrontPage or Dreamweaver you probably won't need this know this code because you can simply click a button that tells the hyperlink to open in a new window but it certainly doesn't hurt to know.<\/p>\n<p>Best regards,<br \/>\nDavid Lalumendre<br \/>\n<a href=\"https:\/\/www.websitespot.com\">www.WebsiteSpot.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was doing some research on topics that visitors were searching for on my blog and at www.WebsiteSpot.com and found that quite a few people are looking for a way to get hyperlinks to open in a new window. This is actually a very simple snippet of HTML code. A hyper link allows you to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[472],"tags":[239,262],"class_list":["post-126","post","type-post","status-publish","format-standard","hentry","category-html-tips","tag-hyperlinks","tag-links"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/posts\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/comments?post=126"}],"version-history":[{"count":0,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/posts\/126\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/media?parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/categories?post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/tags?post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}