What are the values for target attribute?

The target attribute controls how the browser responds when you click on the link.

If the target attribute is _blank, the link will open in a new window.


The following example shows how to link to a page by opening a new window without leaving your web site.




    Last Page 



target attribute value


You can use the following options for the target attribute:


_blank   Open the link in a new window

_self   Default value. Open the link in the same frame as it was clicked

_parent   Open the link in the parent frameset

_top   Open the link in the full body of the window

framename Open the link in a named frame