Current location - Quotes Website - Signature design - What do the four choices of target in html mean _blank, _parent, _self and _top?
What do the four choices of target in html mean _blank, _parent, _self and _top?
1,target="_self ",? It enables the target document to be loaded and displayed in the same frame or window as the source document. This is the core point to realize that every jump you make is in the same window. )

2.target="_blank "。 The browser always loads the target document in the newly opened unnamed window.

3.target="_parent "。 Property is used to load a document into a parent window or frameset that contains frames referenced by hyperlinks. If this reference is in a window or in a top-level frame, it is equivalent to target _self.

4.target="_top "。 Property causes the document to be loaded into the window containing the hyperlink. Using _top target will clear all contained frames and load the document into the entire browser window.

Summary: It is worth noting that all attribute values are preceded by an English character underscore \ \, reminding you not to type Chinese characters or-