what is the difference between target value blank,self, parent,top in HTML?
Solution 1
From the specification:
_blank
The user agent should load the designated document in a new, unnamed window.
_self
The user agent should load the document in the same frame as the element that refers to this target.
_parent
The user agent should load the document into the immediate FRAMESET parent of the current frame. This value is equivalent to _self if the current frame has no parent.
_top
The user agent should load the document into the full, original window (thus canceling all other frames). This value is equivalent to _self if the current frame has no parent.
http://www.w3.org/TR/html4/types.html#type-frame-target
Solution 2
target="_blank"
Opens a new window and show the related data.
target="_self"
Opens the window in the same frame, it means existing window itself.
target="_top"
Opens the linked document in the full body of the window.
target="_parent"
Opens data in the size of parent window.
Source: http://www.w3.org/TR/html4/types.html#type-frame-target
raja kumar
Updated on June 04, 2022Comments
-
raja kumar almost 2 years
what is the difference between target value blank,self, parent,top,framename in tag target attribute? i know blank is open than link in new tab self is that link open in current tab But i can't understand parent and top