HTML Link Targets

By default, links will open in the current window or frame.

We need to add a target if we want the link to open in another window or frame than the link itself is placed in.

To do this we simply add a target=" " to the <a href>.

This example will open anybodycanmaster-computer-network.blogspot.com website in a new window:

<a href = "http://anybodycanmaster-computer-network.blogspot.com"
target="_blank">.


Predefined targets are:
  • _blank loads the page into a new browser window.

  • _self loads the page into the current window.

  • _parent loads the page into the frame that is superior to the frame the hyperlink is in.

  • _top cancels all frames, and loads in full browser window.

In addition to these, we can also enter the name of a frame window if our page is within a frameset.

About Me

My photo
Vision :- "To be a reputed institution of Smart People who Add Value Across Generation". Mission :- We are dedicated to Spreading Literacy in Society and Helping People choose Value for Money Products for Better Living.We are also adding health awareness and wellness to the society of India." We are distributor and promotors of India's Largest IT products Direct Selling Company with a reach of more than 250 cities nationwide. We have a strong internet R&D base to bring out cost effective and Quality products.