Sunday, January 22, 2012

Open hiper link with new tab or window



The addition of the TARGET attribute to a hyperlink lets you dictate where the linked page opens.
  • target="_blank" Opens the linked page in a new tab or window. 
  • target="_self" Opens the linked page in the same tab or window.. This is the default for ordinary pages and doesn't need to be specified. It has a use when working with frames.
  • target="_parent" Opens the linked page in the parent frame in a frames page. 
  • target="_top" Opens the linked page in a full (i.e. top level) window when used in frames pages. This one is useful for letting a linked page 'break out' of a frame.

No comments: