Home  >  Q&A  >  body text

Target problem in hyperlink

<a target="_parent">Specifically refers to which window, and _top

Can you explain in detail

刘凯凯刘凯凯2649 days ago1352

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-07-19 10:08:06

    blank
    The browser always loads the target document in a newly opened, unnamed window.

    self
    The value of this target is the default target for all <a> tags that do not specify a target, which causes the target document to be loaded and displayed in the same frame or window as the source document. This target is redundant and unnecessary unless used in conjunction with the target attribute in the <base> tag of the document title.

    parent
    This target causes the document to be loaded into the parent window or frameset containing the frame referenced by the hyperlink. If this reference is in a window or in a top-level frame, then it is the same as the target self is equivalent.

    top
    This goal causes the document to load into the window containing the hyperlink. Using the top goal will clear all contained frames and load the document into the entire browser window.


    reply
    3
  • Cancelreply