Sunday, December 30, 2018

Changing the target.

Changing the target of a link:-


<html>
<body>

<h1>The target Attribute</h1>

<a href="https://www.google.com/html/" target="_blank">Visit all things!</a>

<p>If you set the target attribute to "_blank", the link will open in a new browser window or tab.</p>

</body>
</html>

OUTPUT:-   
  • If you set the target attribute to "_blank", the link will open in a new browser window or tab.
  • The target attribute specifies where to open the linked document.
  • _blank - Opens the linked document in a new window or tab.
  • _self - Opens the linked document in the same window/tab as it was clicked (this is default).
  • _parent - Opens the linked document in the parent frame.
  • _top - Opens the linked document in the full body of the window.
  • framename - Opens the linked document in a named frame.
  • If your webpage is locked in a frame, you can use target="_top" to break out of the frame.

No comments:

Post a Comment

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...